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/survex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/views/survex.py') diff --git a/core/views/survex.py b/core/views/survex.py index 0c05697..7629af7 100644 --- a/core/views/survex.py +++ b/core/views/survex.py @@ -194,7 +194,7 @@ def svx(request, survex_file): message = "SAVE FILE FIRST" form.data['code'] = rcode if "save" in rform.data: - if request.user.is_authenticated(): + if request.user.is_authenticated: message = form.SaveCode(rcode) else: message = "You do not have authority to save this file. Please log in." -- cgit v1.2.3