Broken queryset indexing with postgresql_psycopg2 with custom through model
|Reported by:||yxven||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If you start a new project and setup a database using postgresl_psycopg2 (I know sqlite3 works. I dunno about others), and create a model that uses a custom through model, queryset indexing will be broken when accessed through that relationship.
I've attached a simplified models.py and tests.py to explain and demonstrate it.