2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-18 09:57:10 +00:00
This commit is contained in:
2024-07-02 12:23:33 +03:00
parent 208c0ffa1f
commit e4d3e33dec
3 changed files with 35 additions and 43 deletions

View File

@@ -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()})