|
@ -37,7 +37,7 @@ from sapl.sessao.forms import ExpedienteMateriaForm, OrdemDiaForm |
|
|
from .forms import (AdicionarVariasMateriasFilterSet, ExpedienteForm, |
|
|
from .forms import (AdicionarVariasMateriasFilterSet, ExpedienteForm, |
|
|
ListMateriaForm, MesaForm, OradorExpedienteForm, |
|
|
ListMateriaForm, MesaForm, OradorExpedienteForm, |
|
|
OradorForm, PautaSessaoFilterSet, PresencaForm, |
|
|
OradorForm, PautaSessaoFilterSet, PresencaForm, |
|
|
ResumoOrdenacaoForm, SessaoPlenariaFilterSet, |
|
|
ResumoOrdenacaoForm, SessaoPlenariaFilterSet, SessaoPlenariaForm, |
|
|
VotacaoEditForm, VotacaoForm, VotacaoNominalForm) |
|
|
VotacaoEditForm, VotacaoForm, VotacaoNominalForm) |
|
|
from .models import (Bancada, Bloco, CargoBancada, CargoMesa, |
|
|
from .models import (Bancada, Bloco, CargoBancada, CargoMesa, |
|
|
ExpedienteMateria, ExpedienteSessao, IntegranteMesa, |
|
|
ExpedienteMateria, ExpedienteSessao, IntegranteMesa, |
|
@ -542,11 +542,15 @@ class SessaoCrud(Crud): |
|
|
|
|
|
|
|
|
class UpdateView(Crud.UpdateView): |
|
|
class UpdateView(Crud.UpdateView): |
|
|
|
|
|
|
|
|
|
|
|
form_class = SessaoPlenariaForm |
|
|
|
|
|
|
|
|
def get_initial(self): |
|
|
def get_initial(self): |
|
|
return {'sessao_legislativa': self.object.sessao_legislativa} |
|
|
return {'sessao_legislativa': self.object.sessao_legislativa} |
|
|
|
|
|
|
|
|
class CreateView(Crud.CreateView): |
|
|
class CreateView(Crud.CreateView): |
|
|
|
|
|
|
|
|
|
|
|
form_class = SessaoPlenariaForm |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|
def cancel_url(self): |
|
|
def cancel_url(self): |
|
|
return self.search_url |
|
|
return self.search_url |
|
|