Browse Source

Corrige method save do form NormaJuridicaForm

pull/781/head
LeandroRoberto 8 years ago
parent
commit
d5891f62d0
  1. 4
      sapl/norma/forms.py

4
sapl/norma/forms.py

@ -190,8 +190,8 @@ class NormaJuridicaForm(ModelForm):
return texto_integral return texto_integral
def save(self, commit=False): def save(self, commit=False):
norma = super(NormaJuridicaForm, self).save(commit) norma = self.instance
norma.timestamp = datetime.now() norma.timestamp = datetime.now()
norma.materia = self.cleaned_data['materia'] norma.materia = self.cleaned_data['materia']
norma.save() norma = super(NormaJuridicaForm, self).save(commit=True)
return norma return norma

Loading…
Cancel
Save