Browse Source

FIX #2326 (#2330)

* FIX #2326

* FIX #2326
pull/2335/head
AndreSouto 6 years ago
committed by Edward
parent
commit
9083055b54
  1. 10
      sapl/sessao/views.py

10
sapl/sessao/views.py

@ -572,6 +572,16 @@ class OradorCrud(OradorCrud):
return reverse('sapl.sessao:orador_list',
kwargs={'pk': self.kwargs['pk']})
class UpdateView(MasterDetailCrud.UpdateView):
form_class = OradorForm
def get_initial(self):
initial = super(UpdateView, self).get_initial()
initial.update({'id_sessao': self.object.sessao_plenaria.id})
return initial
class BancadaCrud(Crud):
model = Bancada

Loading…
Cancel
Save