Browse Source

Correção bug Gertiq #164837

pull/166/head
Sesóstris Vieira 1 year ago
parent
commit
360020a9f9
  1. 8
      sigi/apps/casas/admin.py

8
sigi/apps/casas/admin.py

@ -188,7 +188,7 @@ class ConveniosInline(admin.TabularInline):
"link_sigad", "link_sigad",
"status_convenio", "status_convenio",
"num_convenio", "num_convenio",
"projeto", "get_projeto",
"data_retorno_assinatura", "data_retorno_assinatura",
"data_termino_vigencia", "data_termino_vigencia",
"data_pub_diario", "data_pub_diario",
@ -224,6 +224,12 @@ class ConveniosInline(admin.TabularInline):
return "" return ""
return mark_safe(obj.get_sigad_url(display_type="icone")) return mark_safe(obj.get_sigad_url(display_type="icone"))
@admin.display(description=_("Tipo de convênio"))
def get_projeto(self, obj):
if obj.pk is None:
return ""
return obj.projeto.sigla
class ServicoInline(admin.TabularInline): class ServicoInline(admin.TabularInline):
model = Servico model = Servico

Loading…
Cancel
Save