2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00

Do not rename caves when saving

This commit is contained in:
Martin Green 2023-05-08 22:34:45 +01:00
parent 77ed1b444c
commit 7d140af87a

View File

@ -362,8 +362,6 @@ def edit_cave(request, path="", slug=None):
if form.is_valid() and ceFormSet.is_valid(): if form.is_valid() and ceFormSet.is_valid():
# print(f'! POST is valid. {cave}') # print(f'! POST is valid. {cave}')
cave = form.save(commit=False) cave = form.save(commit=False)
cave.filename = form.cleaned_data["cave_slug"] + ".html"
cave.save() cave.save()
form.save_m2m() form.save_m2m()
if slug is None: if slug is None: