Only show author confirmation if new authors are added, show suggestions for parent work and set it correctly.
This commit is contained in:
parent
07aca2f62c
commit
220cad8661
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