mirror of
https://github.com/pretix/pretix.git
synced 2026-08-28 13:34:40 +00:00
Fixed wrong parameters passed to reverse()
This commit is contained in:
@@ -6,4 +6,4 @@ from django.core.urlresolvers import reverse
|
|||||||
def build_absolute_uri(urlname, args=None, kwargs=None):
|
def build_absolute_uri(urlname, args=None, kwargs=None):
|
||||||
# Pass prefix='' as a possible SCRIPT_PREFIX (if pretix runs in a subdirectory)
|
# Pass prefix='' as a possible SCRIPT_PREFIX (if pretix runs in a subdirectory)
|
||||||
# is included in SITE_URL _and_ is added by reverse.
|
# is included in SITE_URL _and_ is added by reverse.
|
||||||
return urljoin(settings.SITE_URL, reverse(urlname, args, kwargs, prefix=''))
|
return urljoin(settings.SITE_URL, reverse(urlname, args=args, kwargs=kwargs, prefix=''))
|
||||||
|
|||||||
Reference in New Issue
Block a user