QuerySet.delete() attempts to delete unmanaged models.
|Reported by:||Justin Lilly||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||1.1-beta|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When there is an unmanaged model which has a ForeignKey to an object that you're attempting to delete, the ORM attempts to delete it. In my case, this is a database view which doesn't support deletion.
I'll update this with a bit more information and a method for reproducing the error later today, just want to get it on the radar.
I'm also assigning this to the 1.1 milestone as not being able to delete an object associated with a managed model is kind of a big deal. Feel free to override me on it though.
Change History (11)
comment:1 follow-up: 8 Changed 7 years ago by
|Patch needs improvement:||unset|