make adding editions easier
parent
b3cefc2d3c
commit
8f71b24b1b
|
@ -524,6 +524,10 @@ def new_edition(request, work_id, edition_id, by=None):
|
||||||
edition = models.Edition()
|
edition = models.Edition()
|
||||||
if work:
|
if work:
|
||||||
edition.work = work
|
edition.work = work
|
||||||
|
edition.publication_date = work.earliest_publication_date
|
||||||
|
edition.new_authors = []
|
||||||
|
for relator in work.relators():
|
||||||
|
edition.new_authors.append((relator.author.name, relator.relation.code))
|
||||||
|
|
||||||
initial = {
|
initial = {
|
||||||
'language': language,
|
'language': language,
|
||||||
|
|
Loading…
Reference in New Issue