The events model contains a foreign key to campaigns (aka initiatives). When a campaign is deleted causes a cascade delete which also deletes the related event. Instead of deleting the initiatives that are no longer needed, they should be marked as inactive. In order to avoid mistakes we should completely remove the ability to delete initiatives.
I suggest we make this more general and disable all base content deletes.
Commit pushed to master at https://github.com/mozilla/remo https://github.com/mozilla/remo/commit/577f2bb957e53e23fb37aad74c37b602e3d5f38f [Fix bug 1159175] Remove the ability to delete base content. * Remove delete link and modal from /settings/ on all base content * Remove BaseDeleteView and instances defined in content_urls * Remove unused `get_object_delete_url` definitions
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Verified on stage that the delete button is missing for functional areas, activities, initiatives and event metrics. Moreover if a user inputs manually the former delete url, 404 is produced. Example url: https://reps.allizom.org/content/activities/4/delete
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.