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. Note 2: discussion started here: https://code.djangoproject.com/ticket/26664 Would this be valuable addition to Django? Best, Sven -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/1f9fc323-9911-4d79-bf02-0a669360eb8e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
