compatible with Dj2.1.5

This commit is contained in:
Philip Sargent
2021-04-07 21:53:17 +01:00
parent e3a341eb22
commit bf74913486
4 changed files with 12 additions and 19 deletions

View File

@@ -140,7 +140,7 @@ def expopage(request, path):
'''
#print(" - EXPOPAGES delivering the file: '{}':{} as MIME type: {}".format(request.path, path,getmimetype(path)),flush=True)
if path.startswith("noinfo") and settings.PUBLIC_SITE and not request.user.is_authenticated():
if path.startswith("noinfo") and settings.PUBLIC_SITE and not request.user.is_authenticated:
return HttpResponseRedirect(urljoin(reverse("auth_login"),'?next={}'.format(request.path)))
if path.startswith("admin/"):