Add a management command to merge works

This commit is contained in:
Neil Roberts 2023-04-22 19:12:12 +02:00
parent 7211906697
commit d80cefd416

View file

@ -0,0 +1,12 @@
""" PROCEED WITH CAUTION: uses deduplication fields to permanently
merge work data objects """
from bookwyrm import models
from bookwyrm.management.merge_command import MergeCommand
class Command(MergeCommand):
"""merges two works by ID"""
help = "merges specified works into one"
MODEL = models.Work