Browse Source

HOT-FIX coloca filter_override no novo formato

pull/2434/head
Victor Fabre 6 years ago
parent
commit
c7db9779e0
  1. 14
      sapl/base/forms.py
  2. 2
      sapl/templates/base/relatorios_list.html

14
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']

2
sapl/templates/base/relatorios_list.html

@ -58,7 +58,7 @@
</tr>
{% if estatisticas_acesso_normas %}
<tr>
<td><a href="{% url 'sapl.base:estatisticas_acesso' %}">Estatísticas de acesso de Normas.</a></td>
<td><a href="{% url 'sapl.base:estatisticas_acesso' %}">Estatísticas de acesso de Normas</a></td>
<td> Normas por acesso. </td>
</tr>
{% endif %}

Loading…
Cancel
Save