Run python3 manage.py soft_delete_orphan_attachments_2_023_37c_fix inside the KoboCAT container to fix existing submissions.
Notes
The management command does nothing if no background audio recording and audit logs are soft-deleted.
This can happen if self-hosters update their instance from an older than version than 2.023.37c to this one.
Description
Run
python3 manage.py soft_delete_orphan_attachments_2_023_37c_fix
inside the KoboCAT container to fix existing submissions.Notes
The management command does nothing if no background audio recording and audit logs are soft-deleted. This can happen if self-hosters update their instance from an older than version than
2.023.37c
to this one.Internal discussion: https://chat.kobotoolbox.org/#narrow/stream/4-Kobo-Dev/topic/Attachments.20incorrectly.20soft.20deleted