updating posts now also saves path

This commit is contained in:
CDaut 2022-06-25 18:39:04 +02:00 committed by CDaut
parent b3c0ac3f38
commit ee7c359d5b

View file

@ -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: