|
@ -639,7 +639,7 @@ class AutorForm(ModelForm): |
|
|
tipo = cd['tipo'] |
|
|
tipo = cd['tipo'] |
|
|
|
|
|
|
|
|
if 'nome' in cd and \ |
|
|
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']) |
|
|
raise ValidationError("Autor '%s' já existente!" % cd['nome']) |
|
|
|
|
|
|
|
|
if not tipo.content_type: |
|
|
if not tipo.content_type: |
|
|