misc: ugly hack for user_urls on w.c.s. (#61192)
This commit is contained in:
parent
13d74f4169
commit
936e50d70b
|
@ -191,7 +191,14 @@ def hobo_json(request):
|
|||
|
||||
|
||||
def user_urls(request):
|
||||
template_vars = getattr(settings, 'TEMPLATE_VARS', {})
|
||||
# ugly, but necessary..
|
||||
if 'wcs.qommon' in settings.INSTALLED_APPS:
|
||||
from quixote import get_publisher
|
||||
|
||||
pub = get_publisher()
|
||||
template_vars = (pub and pub.get_substitution_variables()) or {}
|
||||
else:
|
||||
template_vars = getattr(settings, 'TEMPLATE_VARS', {})
|
||||
full_path = request.get_full_path()
|
||||
query_string = urlencode({'next': full_path})
|
||||
context = {
|
||||
|
|
Loading…
Reference in New Issue