django1/tests/model_meta
Anssi Kääriäinen 9cd5201abd Fixed #22994 -- regression with generic FK + admin list_view
The reason for the regression was that the GenericForeignKey field isn't
something meta.get_field_by_name() should return. The reason is that a
couple of places in Django expects get_field_by_name() to work this way.
It could make sense to return GFKs from get_field_by_name(), but that
should likely be done as part of meta refactoring or virtual fields
refactoring patches.

Thanks to glicerinu@gmail.com for the report and to Tim for working on
the issue.
2014-07-14 10:50:41 -04:00
..
__init__.py Refs #12663 -- Added tests for methods in db.models.options. 2014-06-19 12:56:36 -04:00
models.py Refs #12663 -- Added tests for methods in db.models.options. 2014-06-19 12:56:36 -04:00
test.py Fixed #22994 -- regression with generic FK + admin list_view 2014-07-14 10:50:41 -04:00