forked from expo/troggle
Do not rename caves when saving
This commit is contained in:
parent
77ed1b444c
commit
7d140af87a
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user