2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00
This commit is contained in:
Philip Sargent 2023-08-04 16:17:52 +03:00
parent 2c74a7317d
commit 1375b34cbe

View File

@ -491,6 +491,7 @@ def edit_entrance(request, path="", caveslug=None, entslug=None):
else: # GET the page, not POST, or if either of the forms were invalid when POSTed else: # GET the page, not POST, or if either of the forms were invalid when POSTed
entletterform = None entletterform = None
entletter = ""
print(f"ENTRANCE in db: entranceletter = '{caveAndEntrance.entranceletter}'") print(f"ENTRANCE in db: entranceletter = '{caveAndEntrance.entranceletter}'")
if entrance: if entrance:
# re-read entrance data from file. # re-read entrance data from file.
@ -516,7 +517,7 @@ def edit_entrance(request, path="", caveslug=None, entslug=None):
request, request,
"editentrance.html", "editentrance.html",
{ {
"entform": form, "entform": entform,
"cave": cave, "cave": cave,
"entletter": entletter, "entletter": entletter,
"entletterform": entletterform, # is unset if not being used "entletterform": entletterform, # is unset if not being used