Browse Source

Excluindo query desnecessária

pull/3546/head
Gustavo 3 years ago
parent
commit
a59ee3f79c
  1. 5
      sapl/base/views.py

5
sapl/base/views.py

@ -712,10 +712,7 @@ class RelatorioDataFimPrazoTramitacaoView(RelatorioMixin, FilterView):
self.request.GET['tramitacao__data_fim_prazo_1'])
if self.request.GET['ano']:
ano_materia = self.request.GET['ano']
for materia in MateriaLegislativa.objects.filter(ano=ano_materia):
context['ano'] = (
materia.ano)
context['ano'] = self.request.GET['ano']
else:
context['ano'] = ''

Loading…
Cancel
Save