mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-18 09:57:10 +00:00
bug fix
This commit is contained in:
@@ -408,7 +408,7 @@ def edit_cave(request, path="", slug=None):
|
||||
|
||||
We basically ignore the <path> as the <slug> is of the format 1624-114 and contains the area code
|
||||
"""
|
||||
#print(f"edit_cave(): {path=} {slug=}")
|
||||
print(f"edit_cave(): {path=} {slug=}")
|
||||
message = ""
|
||||
if slug is not None:
|
||||
try:
|
||||
@@ -463,7 +463,7 @@ def edit_cave(request, path="", slug=None):
|
||||
try:
|
||||
read_cave(cave.filename, cave=cave)
|
||||
except Exception as e:
|
||||
print(f"edit_cave(): EXCEPTION attempting to read_cave()\n{e}")
|
||||
print(f"edit_cave(): EXCEPTION attempting to read_cave({cave.filename})\n{e}")
|
||||
raise
|
||||
|
||||
form = CaveForm(instance=cave, initial={'cave_slug': cave.slug()})
|
||||
|
||||
Reference in New Issue
Block a user