@ -29,9 +29,9 @@ from sapl.utils import permissao_tb_aux, permissoes_painel, permissoes_sessao
from . forms import ( AdicionarVariasMateriasFilterSet , BancadaForm ,
from . forms import ( AdicionarVariasMateriasFilterSet , BancadaForm ,
ExpedienteForm , ExpedienteMateriaForm , ListMateriaForm ,
ExpedienteForm , ExpedienteMateriaForm , ListMateriaForm ,
MesaForm , OrdemDiaForm , Presenc aForm ,
MesaForm , OradorExpedienteForm , OradorForm , OrdemDi aForm ,
SessaoPlenariaFilterSet , VotacaoEditForm , VotacaoForm ,
PresencaForm , SessaoPlenariaFilterSet , VotacaoEditForm ,
VotacaoNominalForm )
VotacaoForm , Votacao NominalForm )
from . models import ( Bancada , Bloco , CargoBancada , CargoMesa ,
from . models import ( Bancada , Bloco , CargoBancada , CargoMesa ,
ExpedienteMateria , ExpedienteSessao , IntegranteMesa ,
ExpedienteMateria , ExpedienteSessao , IntegranteMesa ,
MateriaLegislativa , Orador , OradorExpediente , OrdemDia ,
MateriaLegislativa , Orador , OradorExpediente , OrdemDia ,
@ -180,6 +180,10 @@ class MateriaOrdemDiaCrud(MasterDetailCrud):
class CreateView ( MasterDetailCrud . CreateView ) :
class CreateView ( MasterDetailCrud . CreateView ) :
form_class = OrdemDiaForm
form_class = OrdemDiaForm
def get_success_url ( self ) :
return reverse ( ' sapl.sessao:ordemdia_list ' ,
kwargs = { ' pk ' : self . kwargs [ ' pk ' ] } )
class UpdateView ( MasterDetailCrud . UpdateView ) :
class UpdateView ( MasterDetailCrud . UpdateView ) :
form_class = OrdemDiaForm
form_class = OrdemDiaForm
@ -349,6 +353,10 @@ class ExpedienteMateriaCrud(MasterDetailCrud):
form_class = ExpedienteMateriaForm
form_class = ExpedienteMateriaForm
permission_required = permissoes_sessao ( )
permission_required = permissoes_sessao ( )
def get_success_url ( self ) :
return reverse ( ' sapl.sessao:expedientemateria_list ' ,
kwargs = { ' pk ' : self . kwargs [ ' pk ' ] } )
class UpdateView ( PermissionRequiredMixin , MasterDetailCrud . UpdateView ) :
class UpdateView ( PermissionRequiredMixin , MasterDetailCrud . UpdateView ) :
form_class = ExpedienteMateriaForm
form_class = ExpedienteMateriaForm
permission_required = permissoes_sessao ( )
permission_required = permissoes_sessao ( )
@ -392,9 +400,15 @@ class OradorExpedienteCrud(OradorCrud):
class CreateView ( PermissionRequiredMixin , MasterDetailCrud . CreateView ) :
class CreateView ( PermissionRequiredMixin , MasterDetailCrud . CreateView ) :
permission_required = permissoes_sessao ( )
permission_required = permissoes_sessao ( )
form_class = OradorExpedienteForm
def get_success_url ( self ) :
return reverse ( ' sapl.sessao:oradorexpediente_list ' ,
kwargs = { ' pk ' : self . kwargs [ ' pk ' ] } )
class UpdateView ( PermissionRequiredMixin , MasterDetailCrud . UpdateView ) :
class UpdateView ( PermissionRequiredMixin , MasterDetailCrud . UpdateView ) :
permission_required = permissoes_sessao ( )
permission_required = permissoes_sessao ( )
form_class = OradorExpedienteForm
class DeleteView ( PermissionRequiredMixin , MasterDetailCrud . DeleteView ) :
class DeleteView ( PermissionRequiredMixin , MasterDetailCrud . DeleteView ) :
permission_required = permissoes_sessao ( )
permission_required = permissoes_sessao ( )
@ -405,9 +419,15 @@ class OradorCrud(OradorCrud):
class CreateView ( PermissionRequiredMixin , MasterDetailCrud . CreateView ) :
class CreateView ( PermissionRequiredMixin , MasterDetailCrud . CreateView ) :
permission_required = permissoes_sessao ( )
permission_required = permissoes_sessao ( )
form_class = OradorForm
def get_success_url ( self ) :
return reverse ( ' sapl.sessao:orador_list ' ,
kwargs = { ' pk ' : self . kwargs [ ' pk ' ] } )
class UpdateView ( PermissionRequiredMixin , MasterDetailCrud . UpdateView ) :
class UpdateView ( PermissionRequiredMixin , MasterDetailCrud . UpdateView ) :
permission_required = permissoes_sessao ( )
permission_required = permissoes_sessao ( )
form_class = OradorForm
class DeleteView ( PermissionRequiredMixin , MasterDetailCrud . DeleteView ) :
class DeleteView ( PermissionRequiredMixin , MasterDetailCrud . DeleteView ) :
permission_required = permissoes_sessao ( )
permission_required = permissoes_sessao ( )