diff --git a/sapl/protocoloadm/views.py b/sapl/protocoloadm/views.py index 01581a21e..eec5300d4 100755 --- a/sapl/protocoloadm/views.py +++ b/sapl/protocoloadm/views.py @@ -1074,7 +1074,9 @@ class DocumentoAnexadoEmLoteView(PermissionRequiredMixin, FilterView): msg = _('Documento(s) anexado(s).') messages.add_message(request, messages.SUCCESS, msg) - return self.get(request, self.kwargs) + + success_url = reverse('sapl_index') + 'docadm/' + kwargs['pk'] + '/anexado' + return HttpResponseRedirect(success_url) class TramitacaoAdmCrud(MasterDetailCrud): diff --git a/sapl/templates/protocoloadm/em_lote/anexado.html b/sapl/templates/protocoloadm/em_lote/anexado.html index a8ddf6712..411f9e5a3 100644 --- a/sapl/templates/protocoloadm/em_lote/anexado.html +++ b/sapl/templates/protocoloadm/em_lote/anexado.html @@ -63,6 +63,7 @@ +
{% else %} @@ -75,7 +76,7 @@ {% block extra_js %}