Merge pull request #2937 from jderuiter/create-book-fixes
Fixes for create-book
This commit is contained in:
commit
173d0b77ac
5 changed files with 7 additions and 2 deletions
|
@ -157,6 +157,7 @@ def add_authors(request, data):
|
|||
"""helper for adding authors"""
|
||||
add_author = [author for author in request.POST.getlist("add_author") if author]
|
||||
if not add_author:
|
||||
data["add_author"] = []
|
||||
return data
|
||||
|
||||
data["add_author"] = add_author
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue