Browse Source

Adicionar form_class a classes de Protocolo

pull/242/head
Edward Ribeiro 9 years ago
parent
commit
11c95f2715
  1. 3
      protocoloadm/views.py

3
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()

Loading…
Cancel
Save