|
@ -87,6 +87,7 @@ class FrenteList(MasterDetailCrud): |
|
|
return '%s_parlamentar_%s' % (cls.model._meta.model_name, suffix) |
|
|
return '%s_parlamentar_%s' % (cls.model._meta.model_name, suffix) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class RelatoriaParlamentarCrud(CrudBaseForListAndDetailExternalAppView): |
|
|
class RelatoriaParlamentarCrud(CrudBaseForListAndDetailExternalAppView): |
|
|
model = Relatoria |
|
|
model = Relatoria |
|
|
parent_field = 'parlamentar' |
|
|
parent_field = 'parlamentar' |
|
@ -274,6 +275,7 @@ def parlamentares_frente_selected(request): |
|
|
class FrenteCrud(CrudAux): |
|
|
class FrenteCrud(CrudAux): |
|
|
model = Frente |
|
|
model = Frente |
|
|
help_topic = 'tipo_situa_militar' |
|
|
help_topic = 'tipo_situa_militar' |
|
|
|
|
|
public = [RP_DETAIL, RP_LIST] |
|
|
list_field_names = ['nome', 'data_criacao', 'parlamentares'] |
|
|
list_field_names = ['nome', 'data_criacao', 'parlamentares'] |
|
|
|
|
|
|
|
|
class CreateView(CrudAux.CreateView): |
|
|
class CreateView(CrudAux.CreateView): |
|
|