Merge pull request #1499 from bookwyrm-social/broken-migration

Fixes broken migration
This commit is contained in:
Mouse Reeve 2021-10-03 13:37:31 -07:00 committed by GitHub
commit af068bdfd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ def infer_format(app_registry, schema_editor):
for edition in editions: for edition in editions:
free_format = edition.physical_format_detail.lower() free_format = edition.physical_format_detail.lower()
edition.physical_format = infer_physical_format(free_format) edition.physical_format = infer_physical_format(free_format)
edition.save(broadcast=False, update_fields=["physical_format"]) edition.save()
def reverse(app_registry, schema_editor): def reverse(app_registry, schema_editor):