Browse Source

Muda a tela para o detail após salvar o documento vinculado ao protocolo

pull/222/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
parent
commit
cca3ce0144
  1. 5
      protocoloadm/views.py

5
protocoloadm/views.py

@ -351,9 +351,8 @@ class CriarDocumentoProtocolo(FormMixin, GenericView):
return self.render_to_response({'form': form}) return self.render_to_response({'form': form})
def get_success_url(self): def get_success_url(self):
return reverse('criar_documento', kwargs={ return reverse('detail_doc_adm', kwargs={
'pk': self.kwargs['pk'], 'pk': self.kwargs['pk']})
'ano': self.kwargs['ano']})
class ProtocoloMostrarView(TemplateView): class ProtocoloMostrarView(TemplateView):

Loading…
Cancel
Save