The AbstractMediaDecisionThrough
class and its inheriting classes shouldn't use actual foreign keys to media tables
#4512
Labels
💻 aspect: code
Concerns the software code in the repository
🛠 goal: fix
Bug fix
🟧 priority: high
Stalls work on the project or its dependents
🧱 stack: api
Related to the Django API
Milestone
Description
When running the
backfillmoderationdecision
management command, it failed while bulk creatingMediaDecisionThrough
for images due to an image identifier not found in the image table. This is expected for the case of unindexed media (either because the medium disappeared from the source or because of a report), given that the entry is removed from the media table and the identifier moved to theapi_deleted<media>
table.Error
Expected behavior
We want to drop the foreign keys so this error does not appear and the command can finish without issues and changes.
Additional context
ModerationDecision
backfill management command #3641The text was updated successfully, but these errors were encountered: