From 7bf8f657770b0efaf5af7eccd70a9e8ef1bcf158 Mon Sep 17 00:00:00 2001 From: Victor Fabre Date: Thu, 21 Mar 2019 13:28:28 -0300 Subject: [PATCH] Fix #2634 (#2645) --- sapl/comissoes/views.py | 1 + sapl/templates/comissoes/materias_em_tramitacao.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sapl/comissoes/views.py b/sapl/comissoes/views.py index 743eaa58f..d6d129b11 100644 --- a/sapl/comissoes/views.py +++ b/sapl/comissoes/views.py @@ -186,6 +186,7 @@ class MateriasTramitacaoListView(ListView): context = super( MateriasTramitacaoListView, self).get_context_data(**kwargs) context['object'] = Comissao.objects.get(id=self.kwargs['pk']) + context['qtde'] = self.object_list.count() return context diff --git a/sapl/templates/comissoes/materias_em_tramitacao.html b/sapl/templates/comissoes/materias_em_tramitacao.html index 9f197d1ce..32860df54 100644 --- a/sapl/templates/comissoes/materias_em_tramitacao.html +++ b/sapl/templates/comissoes/materias_em_tramitacao.html @@ -12,7 +12,7 @@ {% block detail_content %}
{{comissao}} - Há {{page_obj|length}} matéria(s) em tramitação nesta unidade.

+ Há {{qtde}} matéria(s) em tramitação nesta unidade.

{% for materia in page_obj %} {{materia.tipo.sigla}} {{materia.numero}} {{materia.ano}} - {{materia.tipo}}