mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-10-31 22:19:00 +00:00
Add a management command to merge works
This commit is contained in:
parent
7211906697
commit
d80cefd416
1 changed files with 12 additions and 0 deletions
12
bookwyrm/management/commands/merge_works.py
Normal file
12
bookwyrm/management/commands/merge_works.py
Normal 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
|
Loading…
Reference in a new issue