diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index 0f6973df4..81ff307cc 100755 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -2176,7 +2176,8 @@ class ResumoView(DetailView): votacoes.append({ 'titulo': titulo_materia, - 'votos': votos_materia + # votos = 1 representa matéria retirada da pauta + 'votos': votos_materia if not mevn.retiradapauta_set.first() else 1 }) context.update({'votos_nominais_materia_expediente': votacoes}) diff --git a/sapl/templates/sessao/blocos_resumo/votos_nominais_materias_expediente.html b/sapl/templates/sessao/blocos_resumo/votos_nominais_materias_expediente.html index ab96c98d9..010997f2e 100644 --- a/sapl/templates/sessao/blocos_resumo/votos_nominais_materias_expediente.html +++ b/sapl/templates/sessao/blocos_resumo/votos_nominais_materias_expediente.html @@ -13,7 +13,9 @@ {% for m in votos_nominais_materia_expediente %} {{ m.titulo }} - {% if m.votos %} + {% if m.votos == 1 %} + Matéria retirada do Expediente + {% elif m.votos %} {% for v in m.votos %}
  • {{v.parlamentar}} - {{v.voto}}