Override QuerySet.delete() (one way of preventing cascading deletes)
We needed to override the default QuerySet delete function to deal with a client problem that we were facing Yes This is monkey-patching, and probably bad practice but if anyone needs to conditionally override the cascading delete that django does at the application level from a queryset, this is how to do it
- queryset
- delete
- monkey-patch