diff --git a/sapl/base/forms.py b/sapl/base/forms.py index e35719321..659914d6a 100644 --- a/sapl/base/forms.py +++ b/sapl/base/forms.py @@ -639,7 +639,7 @@ class AutorForm(ModelForm): tipo = cd['tipo'] if 'nome' in cd and \ - Autor.objects.filter(nome=cd['nome']).exists(): + qs_autor.filter(nome=cd['nome']).exists(): raise ValidationError("Autor '%s' já existente!" % cd['nome']) if not tipo.content_type: