From 7c69e471afd564f461c3ae1544d5b76318c36945 Mon Sep 17 00:00:00 2001 From: "Ph. SW" Date: Sat, 26 Aug 2023 15:23:19 +0200 Subject: [PATCH] =?UTF-8?q?Ajoute=20get=5Fabsolute=5Furl()=20=C3=A0=20Publ?= =?UTF-8?q?ishedContent=20(#6519)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pour faire fonctionner le lien "Voir sur le site" dans la zone d'administration. --- zds/tutorialv2/models/database.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zds/tutorialv2/models/database.py b/zds/tutorialv2/models/database.py index 6ca0ad4161..0e2d7c23f3 100644 --- a/zds/tutorialv2/models/database.py +++ b/zds/tutorialv2/models/database.py @@ -936,6 +936,13 @@ def get_absolute_url_zip(self): return self.get_absolute_url_to_extra_content("zip") + def get_absolute_url(self): + """For admin interface. + get_absolute_url_online() should probably be directly used in other cases. + """ + + return self.get_absolute_url_online() + def get_char_count(self, md_file_path=None): """Compute the number of letters for a given content