Save author along with added edition
This commit is contained in:
parent
c67f92af46
commit
b001c31f97
2 changed files with 2 additions and 3 deletions
|
@ -150,7 +150,7 @@ class CreateBook(View):
|
|||
data["form"].data = formcopy
|
||||
return TemplateResponse(request, "book/edit/edit_book.html", data)
|
||||
|
||||
book = form.save(commit=False)
|
||||
book = form.save()
|
||||
parent_work = get_object_or_404(models.Work, id=parent_work_id)
|
||||
book.parent_work = parent_work
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue