forked from mirrors/bookwyrm
Don't set default edition if it's already set
This commit is contained in:
parent
5e2555dc0e
commit
4c2ec43fce
1 changed files with 3 additions and 2 deletions
|
@ -145,8 +145,9 @@ class AbstractConnector(AbstractMinimalConnector):
|
|||
edition.connector = self.connector
|
||||
edition.save()
|
||||
|
||||
work.default_edition = edition
|
||||
work.save()
|
||||
if not work.default_edition:
|
||||
work.default_edition = edition
|
||||
work.save()
|
||||
|
||||
for author in self.get_authors_from_data(edition_data):
|
||||
edition.authors.add(author)
|
||||
|
|
Loading…
Reference in a new issue