diff --git a/core/views/caves.py b/core/views/caves.py index 4408d76..a440589 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -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 entletterform = None + entletter = "" print(f"ENTRANCE in db: entranceletter = '{caveAndEntrance.entranceletter}'") if entrance: # re-read entrance data from file. @@ -516,7 +517,7 @@ def edit_entrance(request, path="", caveslug=None, entslug=None): request, "editentrance.html", { - "entform": form, + "entform": entform, "cave": cave, "entletter": entletter, "entletterform": entletterform, # is unset if not being used