From bf7491348683ba592804ffe74ff75e0eadbcefcc Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 7 Apr 2021 21:53:17 +0100 Subject: compatible with Dj2.1.5 --- core/views/expo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/views/expo.py') diff --git a/core/views/expo.py b/core/views/expo.py index e051135..d74120f 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -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/"): -- cgit v1.2.3