Browse Source

Adiciona form_class para materia.views

pull/242/head
Edward Ribeiro 9 years ago
parent
commit
c789e0e889
  1. 3
      materia/views.py

3
materia/views.py

@ -513,6 +513,7 @@ class NumeracaoView(FormMixin, GenericView):
class NumeracaoEditView(FormMixin, GenericView):
template_name = "materia/numeracao_edit.html"
form_class = NumeracaoForm
def get(self, request, *args, **kwargs):
materia = MateriaLegislativa.objects.get(id=kwargs['pk'])
@ -678,6 +679,7 @@ class DocumentoAcessorioEditView(FormMixin, GenericView):
class RelatoriaEditView(FormMixin, GenericView):
template_name = "materia/relatoria_edit.html"
form_class = RelatoriaForm
def get_success_url(self):
pk = self.kwargs['pk']
@ -734,6 +736,7 @@ class RelatoriaEditView(FormMixin, GenericView):
class RelatoriaView(FormMixin, GenericView):
template_name = "materia/relatoria.html"
form_class = RelatoriaForm
def get_success_url(self):
pk = self.kwargs['pk']

Loading…
Cancel
Save