From 0cd165c2ee6ec030578edbb5e9d5daa8d3250ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Mon, 18 Dec 2023 17:30:14 -0300 Subject: [PATCH] =?UTF-8?q?Corrige=20bug=20no=20listview=20de=20servi?= =?UTF-8?q?=C3=A7os=20sem=20URL.=20Gertiq=20#168325?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/servicos/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sigi/apps/servicos/admin.py b/sigi/apps/servicos/admin.py index 984ade5..759fbe1 100644 --- a/sigi/apps/servicos/admin.py +++ b/sigi/apps/servicos/admin.py @@ -147,6 +147,8 @@ class ServicoAdmin(ReturnMixin, CartExportMixin, admin.ModelAdmin): if not obj.erro_atualizacao: return "" url = obj.url + if not url: + return obj.erro_atualizacao if url[-1] != "/": url += "/" if obj.tipo_servico.string_pesquisa: