From 7d140af87a4bc1c96da07519ddf222924ca50c60 Mon Sep 17 00:00:00 2001 From: Martin Green Date: Mon, 8 May 2023 22:34:45 +0100 Subject: [PATCH] Do not rename caves when saving --- core/views/caves.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/views/caves.py b/core/views/caves.py index 82e9d64..0d69b74 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -362,8 +362,6 @@ def edit_cave(request, path="", slug=None): if form.is_valid() and ceFormSet.is_valid(): # print(f'! POST is valid. {cave}') cave = form.save(commit=False) - - cave.filename = form.cleaned_data["cave_slug"] + ".html" cave.save() form.save_m2m() if slug is None: