Browse Source

Fix #717

pull/735/head
Eduardo Edson Batista Cordeiro Alves 8 years ago
parent
commit
f135853523
  1. 9
      sapl/parlamentares/views.py

9
sapl/parlamentares/views.py

@ -11,7 +11,8 @@ from sapl.crud.base import (RP_CHANGE, RP_DETAIL, RP_LIST, Crud, CrudAux,
from sapl.materia.models import Proposicao, Relatoria from sapl.materia.models import Proposicao, Relatoria
from sapl.parlamentares.apps import AppConfig from sapl.parlamentares.apps import AppConfig
from .forms import LegislaturaForm, ParlamentarCreateForm, ParlamentarForm from .forms import (FiliacaoForm, LegislaturaForm, ParlamentarCreateForm,
ParlamentarForm)
from .models import (CargoMesa, Coligacao, ComposicaoColigacao, ComposicaoMesa, from .models import (CargoMesa, Coligacao, ComposicaoColigacao, ComposicaoMesa,
Dependente, Filiacao, Frente, Legislatura, Mandato, Dependente, Filiacao, Frente, Legislatura, Mandato,
NivelInstrucao, Parlamentar, Partido, SessaoLegislativa, NivelInstrucao, Parlamentar, Partido, SessaoLegislativa,
@ -161,6 +162,12 @@ class FiliacaoCrud(MasterDetailCrud):
class BaseMixin(MasterDetailCrud.BaseMixin): class BaseMixin(MasterDetailCrud.BaseMixin):
ordering = '-data' ordering = '-data'
class UpdateView(MasterDetailCrud.UpdateView):
form_class = FiliacaoForm
class CreateView(MasterDetailCrud.CreateView):
form_class = FiliacaoForm
class ParlamentarCrud(Crud): class ParlamentarCrud(Crud):
model = Parlamentar model = Parlamentar

Loading…
Cancel
Save