forked from expo/troggle
fix entrqnce edit bug
This commit is contained in:
parent
cdac10fdcf
commit
0706d5dc77
@ -477,10 +477,16 @@ def edit_entrance(request, path="", caveslug=None, entslug=None):
|
|||||||
entrance.slug = slugname
|
entrance.slug = slugname
|
||||||
entrance.cached_primary_slug = slugname
|
entrance.cached_primary_slug = slugname
|
||||||
entrance.filename = slugname + ".html"
|
entrance.filename = slugname + ".html"
|
||||||
|
else:
|
||||||
|
entrance.slug = entslug
|
||||||
|
entrance.cached_primary_slug = entslug
|
||||||
|
entrance.filename = entslug + ".html"
|
||||||
entrance.save()
|
entrance.save()
|
||||||
entrance_letter.entrance = entrance
|
entrance_letter.entrance = entrance
|
||||||
entrance_letter.save()
|
entrance_letter.save()
|
||||||
|
|
||||||
|
if not entrance.filename:
|
||||||
|
print(f"! BARF - why no filename set? '{entslug}' letter:{entletter.cleaned_data['entrance_letter']}")
|
||||||
entrance_file = entrance.file_output()
|
entrance_file = entrance.file_output()
|
||||||
print(f"Online edit of entrance {entrance.slug}")
|
print(f"Online edit of entrance {entrance.slug}")
|
||||||
cave_file = cave.file_output()
|
cave_file = cave.file_output()
|
||||||
|
Loading…
Reference in New Issue
Block a user