mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-03-30 15:09:36 +00:00
Mark default editions
This commit is contained in:
parent
f7b8453594
commit
99adb2ef38
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ class Connector(AbstractConnector):
|
|||
edition_data = pick_default_edition(edition_options)
|
||||
key = edition_data.get('key').split('/')[-1]
|
||||
edition = self.create_book(key, edition_data, models.Edition)
|
||||
edition.default = True
|
||||
edition.parent_work = work
|
||||
edition.save()
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue