1
0
Fork 0

Merge pull request #2937 from jderuiter/create-book-fixes

Fixes for create-book
This commit is contained in:
Mouse Reeve 2023-08-01 19:02:33 -07:00 committed by GitHub
commit 173d0b77ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 2 deletions

View file

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