mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-27 18:40:31 +00:00
Less costly migration
This commit is contained in:
parent
a36bbaf809
commit
e1271dd079
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ def infer_format(app_registry, schema_editor):
|
|||
for edition in editions:
|
||||
free_format = edition.physical_format_detail.lower()
|
||||
edition.physical_format = infer_physical_format(free_format)
|
||||
edition.save()
|
||||
edition.save(broadcast=False, update_fields=["physical_format"])
|
||||
|
||||
|
||||
def reverse(app_registry, schema_editor):
|
||||
|
|
Loading…
Reference in a new issue