updating posts now also saves path
This commit is contained in:
parent
b3c0ac3f38
commit
ee7c359d5b
1 changed files with 1 additions and 0 deletions
|
|
@ -73,6 +73,7 @@ def edit(request, id) -> HttpResponse:
|
||||||
blogpost.topic = topic
|
blogpost.topic = topic
|
||||||
blogpost.title = title
|
blogpost.title = title
|
||||||
blogpost.tags.set(tags)
|
blogpost.tags.set(tags)
|
||||||
|
blogpost.mdfile = filepath
|
||||||
blogpost.save()
|
blogpost.save()
|
||||||
|
|
||||||
with open(filepath, "w") as mdfile:
|
with open(filepath, "w") as mdfile:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue