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})
def get_success_url(self):
return reverse('criar_documento', kwargs={
'pk': self.kwargs['pk'],
'ano': self.kwargs['ano']})
return reverse('detail_doc_adm', kwargs={
'pk': self.kwargs['pk']})
class ProtocoloMostrarView(TemplateView):

Loading…
Cancel
Save