mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-28 18:11:52 +00:00
bugfix
This commit is contained in:
parent
2c509d085e
commit
3b9a2b990d
@ -490,6 +490,7 @@ def edit_entrance(request, path="", caveslug=None, entslug=None):
|
|||||||
return HttpResponseRedirect("/" + cave.url)
|
return HttpResponseRedirect("/" + cave.url)
|
||||||
|
|
||||||
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
|
||||||
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.
|
||||||
@ -506,7 +507,7 @@ def edit_entrance(request, path="", caveslug=None, entslug=None):
|
|||||||
if entletter == "":
|
if entletter == "":
|
||||||
entletterform = EntranceLetterForm()
|
entletterform = EntranceLetterForm()
|
||||||
print(f" Blank value: getting entletter from EntranceLetterForm")
|
print(f" Blank value: getting entletter from EntranceLetterForm")
|
||||||
print(f"{entletter=} {entletterform=}")
|
print(f"{entletter=} ")
|
||||||
else:
|
else:
|
||||||
entform = EntranceForm()
|
entform = EntranceForm()
|
||||||
entletterform = EntranceLetterForm()
|
entletterform = EntranceLetterForm()
|
||||||
@ -518,7 +519,7 @@ def edit_entrance(request, path="", caveslug=None, entslug=None):
|
|||||||
"entform": form,
|
"entform": form,
|
||||||
"cave": cave,
|
"cave": cave,
|
||||||
"entletter": entletter,
|
"entletter": entletter,
|
||||||
"entletterform": entletterform,
|
"entletterform": entletterform, # is unset if not being used
|
||||||
"entlettereditable": entlettereditable,
|
"entlettereditable": entlettereditable,
|
||||||
"path": path + "/",
|
"path": path + "/",
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user