From 585eb534a9996448c8346002e150cf0283605f02 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 2 Aug 2023 10:17:48 +0300 Subject: Entrance locations explanations --- core/views/caves.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/views/caves.py') diff --git a/core/views/caves.py b/core/views/caves.py index a4e3cb1..1c07fda 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -477,7 +477,8 @@ def edit_entrance(request, path="", caveslug=None, entslug=None): cave_file = cave.file_output() write_and_commit([entrance_file, cave_file], f"Online edit of entrance {entrance.slug}") return HttpResponseRedirect("/" + cave.url) - else: + + else: # GET the page, not POST, or if either of the forms were invalid when POSTed if entrance: # re-read entrance data from file. filename = str(entrance.slug +".html") -- cgit v1.2.3