From 8dbad16ece1ebbe4f65b56bbc26c7be526bbe328 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 27 Dec 2024 22:57:34 +0000 Subject: Editor field & cookie working for survex online edits --- core/views/expo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/views/expo.py') diff --git a/core/views/expo.py b/core/views/expo.py index 3fd6ddc..3cba48b 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -14,7 +14,7 @@ from django.views.decorators.csrf import ensure_csrf_cookie import troggle.core.views.caves import troggle.settings as settings from troggle.core.models.caves import Cave -from troggle.core.utils import WriteAndCommitError, current_expo, git_string, write_and_commit +from troggle.core.utils import COOKIE_MAX_AGE, WriteAndCommitError, current_expo, git_string, write_and_commit from troggle.core.views.editor_helpers import HTMLarea from troggle.core.views.uploads import edittxtpage @@ -26,7 +26,7 @@ Then it was incorporated into troggle directly, rather than being an unnecessary This is a succession of hacks and needs to be redisgned and refactored. """ -COOKIE_MAX_AGE = 12*60*60 # seconds + default_head = """ CUCC Expedition - index -- cgit v1.2.3