diff --git a/sapl/norma/forms.py b/sapl/norma/forms.py index 77e9604a4..4fd8c8579 100644 --- a/sapl/norma/forms.py +++ b/sapl/norma/forms.py @@ -190,8 +190,8 @@ class NormaJuridicaForm(ModelForm): return texto_integral def save(self, commit=False): - norma = super(NormaJuridicaForm, self).save(commit) + norma = self.instance norma.timestamp = datetime.now() norma.materia = self.cleaned_data['materia'] - norma.save() + norma = super(NormaJuridicaForm, self).save(commit=True) return norma