From bffeff2d1fd0fa98c9fd13c0f1c34078b1cf572a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Wed, 17 May 2023 10:19:20 -0300 Subject: [PATCH] Ajuste no list_display de eventos --- sigi/apps/eventos/admin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sigi/apps/eventos/admin.py b/sigi/apps/eventos/admin.py index e32ed36..19afaf4 100644 --- a/sigi/apps/eventos/admin.py +++ b/sigi/apps/eventos/admin.py @@ -151,8 +151,8 @@ class EventoAdmin(CartExportMixin, admin.ModelAdmin): date_hierarchy = "data_inicio" list_display = ( "get_banner", + "get_tipo_evento", "nome", - "tipo_evento", "turma", "status", "publicar", @@ -197,6 +197,10 @@ class EventoAdmin(CartExportMixin, admin.ModelAdmin): ) save_as = True + @admin.display(description=_("Tipo Evento")) + def get_tipo_evento(self, obj): + return obj.tipo_evento.nome + @admin.display(description=_("nĂºmero do processo SIGAD")) def link_sigad(self, obj): if obj.pk is None: