Entrance locations explanations

This commit is contained in:
2023-08-02 10:17:48 +03:00
parent 7fc058b1da
commit 585eb534a9
3 changed files with 17 additions and 4 deletions

View File

@@ -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")