Merge pull request #125 from WnP/fix-RemovedInWagtail113Warning

relative_url should accept a 'request' keyword argument.
This commit is contained in:
Diogo Marques 2018-01-03 12:58:32 +00:00 committed by GitHub
commit 7f028ffac8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.