From 360020a9f9785fafe7c29e5462d2c0cedf96cb96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Thu, 21 Sep 2023 10:18:55 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20bug=20Gertiq=20#164837?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/casas/admin.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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