diff --git a/sapl/norma/forms.py b/sapl/norma/forms.py index 5e0eb99ff..610895e09 100644 --- a/sapl/norma/forms.py +++ b/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()