diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index 576979cf7..d8d8549a0 100755 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -755,9 +755,12 @@ class MateriaOrdemDiaCrud(MasterDetailCrud): def get_initial(self): initial = super().get_initial() + initial['tipo_materia'] = self.object.materia.tipo.id initial['numero_materia'] = self.object.materia.numero initial['ano_materia'] = self.object.materia.ano + initial['numero_ordem'] = self.object.numero_ordem + return initial class DetailView(MasterDetailCrud.DetailView): @@ -850,9 +853,12 @@ class ExpedienteMateriaCrud(MasterDetailCrud): def get_initial(self): initial = super().get_initial() + initial['tipo_materia'] = self.object.materia.tipo.id initial['numero_materia'] = self.object.materia.numero initial['ano_materia'] = self.object.materia.ano + initial['numero_ordem'] = self.object.numero_ordem + return initial class DetailView(MasterDetailCrud.DetailView):