|
@ -755,9 +755,12 @@ class MateriaOrdemDiaCrud(MasterDetailCrud): |
|
|
|
|
|
|
|
|
def get_initial(self): |
|
|
def get_initial(self): |
|
|
initial = super().get_initial() |
|
|
initial = super().get_initial() |
|
|
|
|
|
|
|
|
initial['tipo_materia'] = self.object.materia.tipo.id |
|
|
initial['tipo_materia'] = self.object.materia.tipo.id |
|
|
initial['numero_materia'] = self.object.materia.numero |
|
|
initial['numero_materia'] = self.object.materia.numero |
|
|
initial['ano_materia'] = self.object.materia.ano |
|
|
initial['ano_materia'] = self.object.materia.ano |
|
|
|
|
|
initial['numero_ordem'] = self.object.numero_ordem |
|
|
|
|
|
|
|
|
return initial |
|
|
return initial |
|
|
|
|
|
|
|
|
class DetailView(MasterDetailCrud.DetailView): |
|
|
class DetailView(MasterDetailCrud.DetailView): |
|
@ -850,9 +853,12 @@ class ExpedienteMateriaCrud(MasterDetailCrud): |
|
|
|
|
|
|
|
|
def get_initial(self): |
|
|
def get_initial(self): |
|
|
initial = super().get_initial() |
|
|
initial = super().get_initial() |
|
|
|
|
|
|
|
|
initial['tipo_materia'] = self.object.materia.tipo.id |
|
|
initial['tipo_materia'] = self.object.materia.tipo.id |
|
|
initial['numero_materia'] = self.object.materia.numero |
|
|
initial['numero_materia'] = self.object.materia.numero |
|
|
initial['ano_materia'] = self.object.materia.ano |
|
|
initial['ano_materia'] = self.object.materia.ano |
|
|
|
|
|
initial['numero_ordem'] = self.object.numero_ordem |
|
|
|
|
|
|
|
|
return initial |
|
|
return initial |
|
|
|
|
|
|
|
|
class DetailView(MasterDetailCrud.DetailView): |
|
|
class DetailView(MasterDetailCrud.DetailView): |
|
|