Skip to content

Commit

Permalink
add current site to get_url()
Browse files Browse the repository at this point in the history
  • Loading branch information
davidu1975 committed Jan 26, 2024
1 parent 91d0248 commit 80ff472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 80ff472

Please sign in to comment.