[multi-db] select_related stuck in recursive loop
|Reported by:||carole.zieler@…||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
using .select_related on objects ( even if foreign keys are all in the same database ) seems to be hanging in some sort of recursive loop.
I'm attaching a file of a Django project that I created this morning...basically a culled down version of my big project. I'm also attaching a sql dump of my UserDB database...so that it would be easier to view the problem ...
Basically... al you would need to do is go to the settings file...and modify the template directory to be where every you unzipped this tarball to ... and then install the sql dump on your mysql service..and you should be able to run it..and see the problem... by going to http://127.0.0.1:8000/bugsample/useradmin ... if I remove the .select_related ... works fine... but if they are in there... doesn't work.
Change History (4)
comment:1 follow-up: ↓ 2 Changed 8 years ago by anonymous
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 in reply to: ↑ 1 ; follow-up: ↓ 3 Changed 8 years ago by Gary Wilson <gary.wilson@…>
- Component changed from Uncategorized to Database wrapper
- Owner changed from jacob to adrian
- Triage Stage changed from Unreviewed to Accepted