From 455b0c82eafa2edff623109c06cf4a62c0d22e29 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 1 Aug 2023 20:53:06 -0700 Subject: [PATCH] Fixes typo and outdated comment --- bookwyrm/management/commands/repair_editions.py | 2 +- bookwyrm/models/book.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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())