Hacker News new | ask | show | jobs
by nickstefan12 3184 days ago
If anyone wants to see "Database level -- on delete cascade", here's my PR to Django that's been open since July/August: https://github.com/django/django/pull/8661
1 comments

Nothing against your PR, but the default cascade-on-delete behavior is my least favorite thing about Django. :(
You don't like that models.CASCADE fakes it with extra requests to the Db? Or you don't like that the default is models.CASCADE instead of something like models.DO_NOTHING? There's talk of making the on_delete kwarg required. In that world there would be no default :).