Fixes subjects in add edition view

This commit is contained in:
Mouse Reeve
2022-03-17 08:02:59 -07:00
parent 26f0501e2f
commit a684d86d15
3 changed files with 13 additions and 2 deletions

View File

@ -219,6 +219,7 @@ def create_book_from_data(request):
book = {
"parent_work": {"id": request.POST.get("parent_work")},
"authors": models.Author.objects.filter(id__in=author_ids).all(),
"subjects": request.POST.getlist("subjects"),
}
data = {"book": book, "form": forms.EditionForm(request.POST)}