From 385c445e533a98c392f77a6bfe31db25b4fa6f3f Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Tue, 31 Mar 2020 22:48:32 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20Corrige=20teste=20na=20edi=C3=A7?= =?UTF-8?q?=C3=A3o=20de=20Autor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/base/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/base/forms.py b/sapl/base/forms.py index ed883c952..b8714f50c 100644 --- a/sapl/base/forms.py +++ b/sapl/base/forms.py @@ -521,7 +521,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: