Browse Source

Fix #118

pull/123/head
Davi Galati 3 years ago
parent
commit
6dc4fa2a27
  1. 4
      sigi/apps/metas/templatetags/mapa_tags.py

4
sigi/apps/metas/templatetags/mapa_tags.py

@ -3,7 +3,7 @@ from django import template
from django.utils.safestring import mark_safe
from sigi.apps.casas.models import Orgao
from sigi.apps.metas.views import parliament_summary
from sigi.apps.metas.views import openmap
register = template.Library()
@ -14,7 +14,7 @@ def descricao_servicos(casa):
if not isinstance(casa, Orgao):
return ""
summary = parliament_summary(casa)
summary = openmap(casa)
result = ''.join('<li>%s</li>' % info for info in summary['info'])
return mark_safe(result)
descricao_servicos.is_safe = True

Loading…
Cancel
Save