From e7113236a47a305f15d68f4a84a5b61d0dede629 Mon Sep 17 00:00:00 2001 From: Leandro Roberto da Silva Date: Tue, 11 Oct 2016 11:08:58 -0300 Subject: [PATCH] Altera local do attr form_class em ParlamentarCrud --- sapl/parlamentares/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index dce94b5bc..3186f686e 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -167,7 +167,6 @@ class ParlamentarCrud(Crud): public = [RP_LIST, RP_DETAIL] class BaseMixin(Crud.BaseMixin): - form_class = ParlamentarCreateForm ordered_list = False list_field_names = [ 'avatar_html', 'nome_parlamentar', 'filiacao_atual', 'ativo'] @@ -183,6 +182,7 @@ class ParlamentarCrud(Crud): form_class = ParlamentarForm class CreateView(Crud.CreateView): + form_class = ParlamentarCreateForm @property def layout_key(self):