Hi everybody,
That's my first proposal for Django, so I hope it's in the right shape. :)
Even though we have on_delete=PROTECTED on several models fields for a very good reason, there are circumstances where we want to circumvent this restriction for a very good reason, too. And we are 110% sure that this is a safe operation.
Tim already suggested to do this manually but this is very tedious for larger database structure as we have. We already wrote a generic function which provides that capability but we would appreciate a Django-bulitin functionality for this as we duplicate some Django-internal code.
Note 1: overriding Model.delete() does not help as we needed it (this time) in a backward migration to clean up what has been created in a forward migration. Migrations don't expose model-overriden functions.
Would this be valuable addition to Django?
Best,
Sven