|
@ -34,9 +34,10 @@ from sapl.sessao.serializers import SessaoPlenariaSerializer |
|
|
from sapl.utils import permission_required_for_app |
|
|
from sapl.utils import permission_required_for_app |
|
|
|
|
|
|
|
|
from .forms import (AdicionarVariasMateriasFilterSet, ExpedienteForm, |
|
|
from .forms import (AdicionarVariasMateriasFilterSet, ExpedienteForm, |
|
|
ListMateriaForm, MesaForm, PautaSessaoFilterSet, |
|
|
ListMateriaForm, MesaForm, OradorExpedienteForm, |
|
|
PresencaForm, SessaoPlenariaFilterSet, VotacaoEditForm, |
|
|
OradorForm, PautaSessaoFilterSet, PresencaForm, |
|
|
VotacaoForm, VotacaoNominalForm) |
|
|
SessaoPlenariaFilterSet, VotacaoEditForm, VotacaoForm, |
|
|
|
|
|
VotacaoNominalForm) |
|
|
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, |
|
@ -364,6 +365,11 @@ class OradorExpedienteCrud(OradorCrud): |
|
|
|
|
|
|
|
|
class CreateView(MasterDetailCrud.CreateView): |
|
|
class CreateView(MasterDetailCrud.CreateView): |
|
|
|
|
|
|
|
|
|
|
|
form_class = OradorExpedienteForm |
|
|
|
|
|
|
|
|
|
|
|
def get_initial(self): |
|
|
|
|
|
return {'id_sessao': self.kwargs['pk']} |
|
|
|
|
|
|
|
|
def get_success_url(self): |
|
|
def get_success_url(self): |
|
|
return reverse('sapl.sessao:oradorexpediente_list', |
|
|
return reverse('sapl.sessao:oradorexpediente_list', |
|
|
kwargs={'pk': self.kwargs['pk']}) |
|
|
kwargs={'pk': self.kwargs['pk']}) |
|
@ -374,6 +380,11 @@ class OradorCrud(OradorCrud): |
|
|
|
|
|
|
|
|
class CreateView(MasterDetailCrud.CreateView): |
|
|
class CreateView(MasterDetailCrud.CreateView): |
|
|
|
|
|
|
|
|
|
|
|
form_class = OradorForm |
|
|
|
|
|
|
|
|
|
|
|
def get_initial(self): |
|
|
|
|
|
return {'id_sessao': self.kwargs['pk']} |
|
|
|
|
|
|
|
|
def get_success_url(self): |
|
|
def get_success_url(self): |
|
|
return reverse('sapl.sessao:orador_list', |
|
|
return reverse('sapl.sessao:orador_list', |
|
|
kwargs={'pk': self.kwargs['pk']}) |
|
|
kwargs={'pk': self.kwargs['pk']}) |
|
|