diff --git a/sapl/base/forms.py b/sapl/base/forms.py index fecba4a52..a82dcab53 100644 --- a/sapl/base/forms.py +++ b/sapl/base/forms.py @@ -694,15 +694,13 @@ class RelatorioNormasMesFilterSet(django_filters.FilterSet): label='Ano da Norma', choices=RANGE_ANOS) - filter_overrides = {models.DateField: { - 'filter_class': django_filters.DateFromToRangeFilter, - 'extra': lambda f: { - 'label': '%s (%s)' % (f.verbose_name, _('Ano')), - 'widget': RangeWidgetOverride} - }} - - class Meta: + filter_overrides = {models.DateField: { + 'filter_class': django_filters.DateFromToRangeFilter, + 'extra': lambda f: { + 'label': '%s (%s)' % (f.verbose_name, _('Ano')), + 'widget': RangeWidgetOverride} + }} model = NormaJuridica fields = ['ano'] diff --git a/sapl/templates/base/relatorios_list.html b/sapl/templates/base/relatorios_list.html index 87f8933be..012064096 100644 --- a/sapl/templates/base/relatorios_list.html +++ b/sapl/templates/base/relatorios_list.html @@ -58,7 +58,7 @@ {% if estatisticas_acesso_normas %}