|
@ -167,7 +167,6 @@ class ParlamentarCrud(Crud): |
|
|
public = [RP_LIST, RP_DETAIL] |
|
|
public = [RP_LIST, RP_DETAIL] |
|
|
|
|
|
|
|
|
class BaseMixin(Crud.BaseMixin): |
|
|
class BaseMixin(Crud.BaseMixin): |
|
|
form_class = ParlamentarCreateForm |
|
|
|
|
|
ordered_list = False |
|
|
ordered_list = False |
|
|
list_field_names = [ |
|
|
list_field_names = [ |
|
|
'avatar_html', 'nome_parlamentar', 'filiacao_atual', 'ativo'] |
|
|
'avatar_html', 'nome_parlamentar', 'filiacao_atual', 'ativo'] |
|
@ -183,6 +182,7 @@ class ParlamentarCrud(Crud): |
|
|
form_class = ParlamentarForm |
|
|
form_class = ParlamentarForm |
|
|
|
|
|
|
|
|
class CreateView(Crud.CreateView): |
|
|
class CreateView(Crud.CreateView): |
|
|
|
|
|
form_class = ParlamentarCreateForm |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|
def layout_key(self): |
|
|
def layout_key(self): |
|
|