Browse Source

Merge pull request #123 from interlegis/branch_nova

Fix #120 #118
pull/126/head
Sesostris Vieira 3 years ago
committed by GitHub
parent
commit
02fc8df2bc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      sigi/apps/convenios/admin.py
  2. 1
      sigi/apps/convenios/models.py
  3. 4
      sigi/apps/metas/templatetags/mapa_tags.py

4
sigi/apps/convenios/admin.py

@ -68,9 +68,9 @@ class ConvenioAdmin(BaseModelAdmin):
readonly_fields = ('data_sigi', 'atualizacao_gescon', 'observacao_gescon', 'link_gescon')
actions = ['adicionar_convenios']
inlines = (AnexosInline,)
list_display = ('num_convenio', 'casa_legislativa', 'get_uf',
list_display = ('num_convenio', 'projeto','casa_legislativa', 'get_uf',
'status_convenio', 'link_sigad', 'data_retorno_assinatura',
'data_termino_vigencia', 'projeto',)
'data_termino_vigencia',)
list_display_links = ('num_convenio', 'casa_legislativa',)
list_filter = (('casa_legislativa__gerentes_interlegis',
GerentesInterlegisFilter), 'projeto',

1
sigi/apps/convenios/models.py

@ -57,6 +57,7 @@ class Convenio(models.Model):
projeto = models.ForeignKey(
Projeto,
on_delete=models.PROTECT,
verbose_name=_(u'Tipo de Convenio')
)
# numero designado pelo Senado Federal para o convênio
num_processo_sf = models.CharField(

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