1
0
Fork 0

Only show author confirmation if new authors are added, show suggestions for parent work and set it correctly.

This commit is contained in:
Joeri de Ruiter 2023-08-01 15:12:50 +02:00
parent 07aca2f62c
commit 220cad8661
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