diff --git a/protocoloadm/urls.py b/protocoloadm/urls.py index 8a25f4a13..7a8bbbea4 100644 --- a/protocoloadm/urls.py +++ b/protocoloadm/urls.py @@ -55,7 +55,7 @@ urlpatterns = [ DocumentoAcessorioAdministrativoView.as_view(), name='doc_ace_adm'), url(r'^protocoloadm/(?P\d+)/tramitacao$', - TramitacaoAdmView.as_view(), name='tramitacao'), + TramitacaoAdmView.as_view(), name='tramitacao_adm'), url(r'^protocoloadm/(?P\d+)/tramitacao_incluir', TramitacaoAdmIncluirView.as_view(), name='tramitacao_incluir'), url(r'^protocoloadm/(?P\d+)/tramitacao_edit', diff --git a/protocoloadm/views.py b/protocoloadm/views.py index 255672409..25f74f18d 100644 --- a/protocoloadm/views.py +++ b/protocoloadm/views.py @@ -688,6 +688,7 @@ class DetailDocumentoAdministrativo(DetailView): def get(self, request, *args, **kwargs): doc = DocumentoAdministrativo.objects.get(id=kwargs['pk']) return self.render_to_response({ + 'pk': kwargs['pk'], 'doc': doc, 'tipos_doc': TipoDocumentoAdministrativo.objects.all() }) @@ -791,7 +792,8 @@ class DocumentoAcessorioAdministrativoView(FormMixin, GenericView): doc_ace_null = 'Nenhum documento acessório \ cadastrado para este processo.' - return self.render_to_response({'doc': doc, + return self.render_to_response({'pk': kwargs['pk'], + 'doc': doc, 'doc_ace': doc_acessorio, 'doc_ace_null': doc_ace_null, 'form': form}) diff --git a/templates/protocoloadm/detail_doc_detail.html b/templates/protocoloadm/detail_doc_detail.html index 346b0792d..48cd9b73e 100644 --- a/templates/protocoloadm/detail_doc_detail.html +++ b/templates/protocoloadm/detail_doc_detail.html @@ -5,5 +5,5 @@