From fd7638a326a568793337c17aa5eac7d18e26998f Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Thu, 30 May 2019 13:53:18 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20coloca=20op=C3=A7=C3=A3o=20vazia=20e?= =?UTF-8?q?m=20ano=20de=20mat=C3=A9ria?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/norma/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/norma/forms.py b/sapl/norma/forms.py index ace5ccc6e..366b7d544 100644 --- a/sapl/norma/forms.py +++ b/sapl/norma/forms.py @@ -18,7 +18,7 @@ from sapl.materia.forms import choice_anos_com_materias from sapl.materia.models import MateriaLegislativa, TipoMateriaLegislativa from sapl.settings import MAX_DOC_UPLOAD_SIZE from sapl.utils import NormaPesquisaOrderingFilter, RangeWidgetOverride, \ - choice_anos_com_normas, FilterOverridesMetaMixin, FileFieldCheckMixin, RANGE_ANOS + choice_anos_com_normas, FilterOverridesMetaMixin, FileFieldCheckMixin, ANO_CHOICES from .models import (AnexoNormaJuridica, AssuntoNorma, NormaJuridica, NormaRelacionada, TipoNormaJuridica, AutoriaNorma) @@ -106,7 +106,7 @@ class NormaJuridicaForm(FileFieldCheckMixin, ModelForm): ano_materia = forms.ChoiceField( label='Ano Matéria', required=False, - choices=RANGE_ANOS, + choices=ANO_CHOICES, widget=forms.Select(attrs={'autocomplete': 'off'}) )