From 4450861cd59bf3aa1a28dd64b926f76a6338bcb2 Mon Sep 17 00:00:00 2001 From: joaohortsenado <100957576+joaohortsenado@users.noreply.github.com> Date: Thu, 1 Dec 2022 18:37:32 -0300 Subject: [PATCH] fix: Corrige erro ao salvar partidos em bloco parlamentar (#3625) Co-authored-by: joao --- sapl/parlamentares/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sapl/parlamentares/forms.py b/sapl/parlamentares/forms.py index 9ebd3469d..8621eb360 100755 --- a/sapl/parlamentares/forms.py +++ b/sapl/parlamentares/forms.py @@ -726,6 +726,8 @@ class BlocoForm(ModelForm): ) else: bloco.save() + + bloco.partidos.set(self.cleaned_data['partidos']) return bloco