Sporadic proxy deletion failures on mysql
|Reported by:||Nate Bragg||Owned by:||Nate Bragg|
|Component:||Database layer (models, ORM)||Version:||1.4-beta-1|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
IntegrityErrors would occur. This was caused by the proxy model's base model not having the proxy model as a dependancy, and the sporadic nature was entirely the result of dictionary ordering going into Collector.sort() - sometimes it would be in an order that honored the constraints, sometimes it wouldn't.
This was introduced, I believe, in revision 17664. I have only observed it on mysql, but it is hypothetically a universal issue.
My proposed solution is simply to ensure that the proxy model's base class gets included as a dependency.