Browse Source

Fix #3228: Adiciona initial numero_ordem (#3229)

pull/3244/head
João Rodrigues 4 years ago
committed by GitHub
parent
commit
97c23b4a7e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      sapl/sessao/views.py

6
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):

Loading…
Cancel
Save