From 3252a14ef340e11d48ee932964b9f0925f6925c3 Mon Sep 17 00:00:00 2001 From: LeandroRoberto Date: Mon, 3 Oct 2016 15:00:46 -0300 Subject: [PATCH] =?UTF-8?q?Add=20especializa=C3=A7=C3=A3o=20do=20form=20em?= =?UTF-8?q?=20Norma?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/norma/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sapl/norma/views.py b/sapl/norma/views.py index 27f8b94dd..f00494323 100644 --- a/sapl/norma/views.py +++ b/sapl/norma/views.py @@ -5,11 +5,13 @@ from django.views.generic import FormView, ListView from sapl.compilacao.views import IntegracaoTaView from sapl.crud.base import RP_DETAIL, RP_LIST, Crud, CrudAux, make_pagination +from sapl.norma.forms import NormaJuridicaForm from .forms import NormaJuridicaPesquisaForm from .models import (AssuntoNorma, LegislacaoCitada, NormaJuridica, TipoNormaJuridica) + LegislacaoCitadaCrud = Crud.build(LegislacaoCitada, '') @@ -28,6 +30,7 @@ class NormaCrud(Crud): public = [RP_LIST, RP_DETAIL] class UpdateView(Crud.UpdateView): + form_class = NormaJuridicaForm @property def layout_key(self): @@ -42,6 +45,7 @@ class NormaCrud(Crud): return self.initial.copy() class CreateView(Crud.CreateView): + form_class = NormaJuridicaForm @property def layout_key(self):