From 97c23b4a7ec4c80009227effefd8d09e08084512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Rodrigues?= Date: Wed, 12 Aug 2020 10:16:07 -0300 Subject: [PATCH] Fix #3228: Adiciona initial numero_ordem (#3229) --- sapl/sessao/views.py | 6 ++++++ 1 file changed, 6 insertions(+) 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):