From e5fc1f2217c8ae41be9a31044d7a1be87f7f5f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rog=C3=A9rio=20Fr=C3=A1?= Date: Thu, 26 Jan 2017 12:39:27 -0200 Subject: [PATCH] ANO_CHOICES (#899) --- 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 260df9ee9..8e60ed8cc 100644 --- a/sapl/norma/forms.py +++ b/sapl/norma/forms.py @@ -46,7 +46,7 @@ class NormaFilterSet(django_filters.FilterSet): ano = django_filters.ChoiceFilter(required=False, label=u'Ano', - choices=RANGE_ANOS) + choices=ANO_CHOICES) ementa = django_filters.CharFilter(lookup_expr='icontains') @@ -90,7 +90,7 @@ class NormaJuridicaForm(ModelForm): ano_materia = forms.ChoiceField( label='Ano Matéria', required=False, - choices=RANGE_ANOS, + choices=ANO_CHOICES, ) class Meta: