Browse Source

Add especialização do form em Norma

pull/691/head
LeandroRoberto 8 years ago
parent
commit
3252a14ef3
  1. 4
      sapl/norma/views.py

4
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):

Loading…
Cancel
Save