From a04a2bf936c40a4f1e71919e87ecc09067a0b01e Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Tue, 8 Nov 2016 10:20:02 -0200 Subject: [PATCH] Remove ANOS_CHOICES --- 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 a6d36b883..acfaaad42 100644 --- a/sapl/norma/forms.py +++ b/sapl/norma/forms.py @@ -12,7 +12,7 @@ from django.utils.translation import ugettext_lazy as _ from sapl.crispy_layout_mixin import form_actions, to_row from sapl.materia.models import MateriaLegislativa, TipoMateriaLegislativa from sapl.settings import MAX_DOC_UPLOAD_SIZE -from sapl.utils import ANO_CHOICES, RANGE_ANOS, RangeWidgetOverride +from sapl.utils import RANGE_ANOS, RangeWidgetOverride from .models import AssuntoNorma, NormaJuridica @@ -43,7 +43,7 @@ class NormaFilterSet(django_filters.FilterSet): ano = django_filters.ChoiceFilter(required=False, label=u'Ano', - choices=ANO_CHOICES) + choices=RANGE_ANOS) ementa = django_filters.CharFilter(lookup_expr='icontains')