Browse Source

Adiciona opçao vazio na seleção de ano

pull/791/head
Eduardo Edson Batista Cordeiro Alves 8 years ago
parent
commit
96f442736b
  1. 2
      sapl/norma/forms.py

2
sapl/norma/forms.py

@ -34,6 +34,8 @@ ORDENACAO_CHOICES = [('', '---------'),
class NormaFilterSet(django_filters.FilterSet): class NormaFilterSet(django_filters.FilterSet):
RANGE_ANOS.insert(0, ('', 'Selecione'))
filter_overrides = {models.DateField: { filter_overrides = {models.DateField: {
'filter_class': django_filters.DateFromToRangeFilter, 'filter_class': django_filters.DateFromToRangeFilter,
'extra': lambda f: { 'extra': lambda f: {

Loading…
Cancel
Save