From 576bc7b01965e65e700b9e3f07966da581aae9c6 Mon Sep 17 00:00:00 2001 From: Ulysses Lara Date: Wed, 29 May 2019 12:18:46 -0300 Subject: [PATCH] HOT-FIX - Mudando choices de ano no NormaJuridicaForm (#2817) --- 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 5a9e1b3f6..ace5ccc6e 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 + choice_anos_com_normas, FilterOverridesMetaMixin, FileFieldCheckMixin, RANGE_ANOS 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=choice_anos_com_materias, + choices=RANGE_ANOS, widget=forms.Select(attrs={'autocomplete': 'off'}) )