Browse Source

Fix #2043 (#2044)

* Fix #2043

* Update forms.py
pull/2049/head
Talitha Pumar 7 years ago
committed by Edward
parent
commit
4d55e3ae49
  1. 2
      sapl/norma/forms.py

2
sapl/norma/forms.py

@ -125,7 +125,7 @@ class NormaJuridicaForm(ModelForm):
if not self.is_valid():
return cleaned_data
if not self.instance:
if self.instance.numero != cleaned_data['numero']:
norma = NormaJuridica.objects.filter(ano=cleaned_data['ano'],
numero=cleaned_data['numero'],
tipo=cleaned_data['tipo']).exists()

Loading…
Cancel
Save