From 9083055b54774fb66ad8a1d0213c1c7be03618be Mon Sep 17 00:00:00 2001 From: AndreSouto Date: Wed, 24 Oct 2018 19:24:49 -0300 Subject: [PATCH] FIX #2326 (#2330) * FIX #2326 * FIX #2326 --- sapl/sessao/views.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index a513b7549..9f172d518 100644 --- a/sapl/sessao/views.py +++ b/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