Browse Source

removendo None ao imprimir presidente

stable/1.0
Felipe Vieira 13 years ago
parent
commit
f2198a9752
  1. 2
      sigi/apps/casas/reports.py
  2. 2
      sigi/apps/casas/templates/casas/carrinho.html

2
sigi/apps/casas/reports.py

@ -80,6 +80,8 @@ class CasasLegislativasLabels(Report):
ObjectValue(
attribute_name='presidente',
top=1.5*cm, left=0.5*cm, width=9.4*cm,
get_value=lambda instance:
instance.presidente or ""
),
ObjectValue(
attribute_name='tipo',

2
sigi/apps/casas/templates/casas/carrinho.html

@ -45,7 +45,7 @@
{% endif %}
<td style="text-align: left;">{{casa.nome}}</td>
<td>{{casa.municipio}}</td>
<td>{{casa.presidente}}</td>
<td>{{casa.presidente|default_if_none:""}}</td>
<td>{{casa.logradouro}}</td>
</tr>
{% endfor %}

Loading…
Cancel
Save