From ecb196370d62d6c1c39dd7567cccfee9c4d3c4e3 Mon Sep 17 00:00:00 2001 From: Victor Fabre Date: Mon, 16 Apr 2018 16:53:41 -0300 Subject: [PATCH] Fix #1880 (#1886) --- sapl/protocoloadm/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/protocoloadm/forms.py b/sapl/protocoloadm/forms.py index eff6d09a1..dc3d5280c 100644 --- a/sapl/protocoloadm/forms.py +++ b/sapl/protocoloadm/forms.py @@ -669,7 +669,7 @@ class DocumentoAdministrativoForm(ModelForm): tipo_documento = self.data['tipo'] documento = DocumentoAdministrativo.objects.filter(numero=numero_documento, - tipo=tipo_documento) + tipo=tipo_documento, ano=ano_protocolo) if documento: raise ValidationError('Documento já existente')