From 23ec69f371c4da284718f0d7f9955dca43027bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Rodrigues?= Date: Fri, 22 Mar 2019 17:26:54 -0300 Subject: [PATCH] Corrigir marcar/desmarcar todos --- sapl/protocoloadm/views.py | 4 +++- sapl/templates/protocoloadm/em_lote/anexado.html | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 %}