mirror of
https://github.com/Hopiu/wagtail-modeltranslation.git
synced 2026-05-04 13:34:45 +00:00
Merge pull request #125 from WnP/fix-RemovedInWagtail113Warning
relative_url should accept a 'request' keyword argument.
This commit is contained in:
commit
7f028ffac8
1 changed files with 1 additions and 1 deletions
|
|
@ -335,7 +335,7 @@ def _new_get_site_root_paths():
|
|||
return result
|
||||
|
||||
|
||||
def _new_relative_url(self, current_site):
|
||||
def _new_relative_url(self, current_site, request=None):
|
||||
"""
|
||||
Return the 'most appropriate' URL for this page taking into account the site we're currently on;
|
||||
a local URL if the site matches, or a fully qualified one otherwise.
|
||||
|
|
|
|||
Loading…
Reference in a new issue