Re: Support for database level on delete cascade 21961

2017-12-11 Thread Nick Stefan
also curious why you wouldn't put the contraints directly on the DB > table instead of injecting them into the SQL commands. > > Can you explain the rationale behind these decisions/constraints? > > > Best, > > Dylan > > On Monday, 24 July 2017 23:34:33 UTC-3,

Re: Support for database level on delete cascade 21961

2017-09-05 Thread Nick Stefan
/8661 Nick On Thursday, July 27, 2017 at 1:19:19 AM UTC-7, Anssi Kääriäinen wrote: > > On Tuesday, July 25, 2017 at 5:34:33 AM UTC+3, Nick Stefan wrote: >> >> 5. Q: implicit foreign keys between child to parent in model inheritance? >> A: We could forbid models.DB_

Support for database level on delete cascade 21961

2017-07-24 Thread Nick Stefan
Hi All, I've taken interest to implimenting built in django support of ON DELETE CASCADE. As a general concept, the ticket was accepted 3 years ago, and there was some discussion around that time: https://code.djangoproject.com/ticket/21961 . I've put together a small PR with some but not all