Mark default editions

This commit is contained in:
Mouse Reeve 2020-04-29 11:21:36 -07:00
parent f7b8453594
commit 99adb2ef38
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ class Connector(AbstractConnector):
edition_data = pick_default_edition(edition_options) edition_data = pick_default_edition(edition_options)
key = edition_data.get('key').split('/')[-1] key = edition_data.get('key').split('/')[-1]
edition = self.create_book(key, edition_data, models.Edition) edition = self.create_book(key, edition_data, models.Edition)
edition.default = True
edition.parent_work = work edition.parent_work = work
edition.save() edition.save()
else: else: