From 96f442736b21151c2c8449940e5bbec0d0d8d0c8 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Wed, 9 Nov 2016 15:06:00 -0200 Subject: [PATCH] =?UTF-8?q?Adiciona=20op=C3=A7ao=20vazio=20na=20sele=C3=A7?= =?UTF-8?q?=C3=A3o=20de=20ano?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/norma/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sapl/norma/forms.py b/sapl/norma/forms.py index 3e9abec99..5d57f6620 100644 --- a/sapl/norma/forms.py +++ b/sapl/norma/forms.py @@ -34,6 +34,8 @@ ORDENACAO_CHOICES = [('', '---------'), class NormaFilterSet(django_filters.FilterSet): + RANGE_ANOS.insert(0, ('', 'Selecione')) + filter_overrides = {models.DateField: { 'filter_class': django_filters.DateFromToRangeFilter, 'extra': lambda f: {