From 80ff472f4e005c4e5cccd00cd18c7462b50c662c Mon Sep 17 00:00:00 2001 From: davidu1975 Date: Fri, 26 Jan 2024 09:58:13 +0000 Subject: [PATCH] add current site to get_url() --- core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models.py b/core/models.py index 3809041d..d91fe1a1 100644 --- a/core/models.py +++ b/core/models.py @@ -250,7 +250,7 @@ def get_tree_based_url(self, include_site_url=False): def get_url_path_parts(self): return [self.view_path, self.slug + '/'] - def get_url(self, request=None, is_draft=False, language_code=settings.LANGUAGE_CODE): + def get_url(self, request=None, current_site=None, is_draft=False, language_code=settings.LANGUAGE_CODE): url = self.full_url querystring = {} if is_draft: