diff --git a/sigi/apps/casas/admin.py b/sigi/apps/casas/admin.py index 69db681..570f563 100644 --- a/sigi/apps/casas/admin.py +++ b/sigi/apps/casas/admin.py @@ -188,7 +188,7 @@ class ConveniosInline(admin.TabularInline): "link_sigad", "status_convenio", "num_convenio", - "projeto", + "get_projeto", "data_retorno_assinatura", "data_termino_vigencia", "data_pub_diario", @@ -224,6 +224,12 @@ class ConveniosInline(admin.TabularInline): return "" 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): model = Servico