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