Fix error in migrations

I was getting the following error when running 0035:
AttributeError: 'Edition' object has no attribute 'get_rank',

But that line seems to be unnecessary, since save() does the same thing,
and we are already calling that.
This commit is contained in:
Joel Bradshaw 2021-01-13 18:36:07 -08:00
parent 8986af42d6
commit ec2a43faa5

View file

@ -8,7 +8,6 @@ def set_rank(app_registry, schema_editor):
db_alias = schema_editor.connection.alias
books = app_registry.get_model('bookwyrm', 'Edition')
for book in books.objects.using(db_alias):
book.edition_rank = book.get_rank
book.save()
class Migration(migrations.Migration):