Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Explicitly make all foreign key deletes cascade #425

Merged
merged 2 commits into from
Mar 9, 2016
Merged

Conversation

joshkalpin
Copy link
Member

It defaults to this, but better for my piece of mind and it becomes mandatory to do this in Django 2.0

@Ommy
Copy link
Contributor

Ommy commented Mar 8, 2016

lgtm for the most part. Can we add some tests for this functionality?

@joshkalpin
Copy link
Member Author

Yes

@Trinovantes
Copy link
Member

should also remove references of elements from conditions

@joshkalpin
Copy link
Member Author

@Trinovantes that is much more complicated as there isn't really a way of easily determining whether an element has references to conditions right now.

Captured in #428

@joshkalpin joshkalpin force-pushed the josh/explicit-cascade branch from 65d8b98 to 93b43dd Compare March 9, 2016 00:31
Ommy added a commit that referenced this pull request Mar 9, 2016
Explicitly make all foreign key deletes cascade
@Ommy Ommy merged commit f2ab70d into master Mar 9, 2016
@Ommy Ommy deleted the josh/explicit-cascade branch March 9, 2016 02:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants