Merge pull request #2838 from bpeel/merge-works-command

Add a management command to merge works
This commit is contained in:
Jascha Ezra Urbach 2023-05-11 16:29:58 +02:00 committed by GitHub
commit 70a5153271
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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