From 11c95f2715559576e8f38e22abc2013bef1d32d2 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Fri, 4 Mar 2016 15:55:06 -0300 Subject: [PATCH] Adicionar form_class a classes de Protocolo --- protocoloadm/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocoloadm/views.py b/protocoloadm/views.py index 975573e66..07668d071 100644 --- a/protocoloadm/views.py +++ b/protocoloadm/views.py @@ -146,6 +146,7 @@ def get_client_ip(request): class AnularProtocoloAdmView(FormMixin, GenericView): template_name = 'protocoloadm/anular_protocoloadm.html' + form_class = AnularProcoloAdmForm def get_success_url(self): return reverse('anular_protocolo') @@ -199,6 +200,7 @@ class ProtocoloDocumentoView(FormMixin, GenericView): template_name = "protocoloadm/protocolar_documento.html" model = Protocolo + form_class = ProtocoloDocumentForm def get_success_url(self): return reverse('protocolo') @@ -317,6 +319,7 @@ class ProtocoloMateriaView(FormMixin, GenericView): template_name = "protocoloadm/protocolar_materia.html" model = Protocolo + form_class = ProtocoloMateriaForm def get(self, request, *args, **kwargs): form = ProtocoloMateriaForm()