diff --git a/bookwyrm/management/commands/repair_editions.py b/bookwyrm/management/commands/repair_editions.py index d43ad6ca6..304cd5e51 100644 --- a/bookwyrm/management/commands/repair_editions.py +++ b/bookwyrm/management/commands/repair_editions.py @@ -3,7 +3,7 @@ from django.core.management.base import BaseCommand from bookwyrm import models -class Commmand(BaseCommand): +class Command(BaseCommand): """command-line options""" help = "Repairs an edition that is in a broken state" diff --git a/bookwyrm/models/book.py b/bookwyrm/models/book.py index 6a779b0f6..c213bf9ce 100644 --- a/bookwyrm/models/book.py +++ b/bookwyrm/models/book.py @@ -387,7 +387,6 @@ class Edition(Book): if self.parent_work: return - # assign this edition to the parent of the duplicate edition new_work = Work.objects.create(title=self.title) new_work.authors.set(self.authors.all())