Re: Support of model_object.delete(cascade=True)

2016-05-27 Thread charettes
Hi Sven, I agree with Tim about the fact such an option could be dangerous as you can't control the extent of the cascade. We removed the depth parameter of `QuerySet.select_related()` method for similar reasons and in this case you only ended up with a slow query not possibly purged data. They'

Support of model_object.delete(cascade=True)

2016-05-27 Thread Sven R. Kunze
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% su