|
|
@ -13,7 +13,7 @@ from sapl.base.models import AppConfig as AppsAppConfig |
|
|
|
from sapl.crud.base import (RP_DETAIL, RP_LIST, Crud, |
|
|
|
CrudAux, MasterDetailCrud, |
|
|
|
PermissionRequiredForAppCrudMixin) |
|
|
|
from sapl.comissoes.forms import (ComissaoForm, DocumentoAcessorioCreateForm, |
|
|
|
from sapl.comissoes.forms import (ComissaoForm,ComposicaoForm, DocumentoAcessorioCreateForm, |
|
|
|
DocumentoAcessorioEditForm, ParticipacaoCreateForm, |
|
|
|
ParticipacaoEditForm, ReuniaoForm) |
|
|
|
from sapl.materia.models import MateriaLegislativa, Tramitacao |
|
|
@ -81,6 +81,10 @@ class ComposicaoCrud(MasterDetailCrud): |
|
|
|
model_set = 'participacao_set' |
|
|
|
public = [RP_LIST, RP_DETAIL, ] |
|
|
|
|
|
|
|
class CreateView(MasterDetailCrud.CreateView): |
|
|
|
form_class = ComposicaoForm |
|
|
|
|
|
|
|
|
|
|
|
class ListView(MasterDetailCrud.ListView): |
|
|
|
template_name = "comissoes/composicao_list.html" |
|
|
|
paginate_by = None |
|
|
|