When using .defer on a PolymorphicQuerySet with multiple childs that
subclass from the same polymorphic parent model yield an error like:
>>> Base.objects.defer('ModelY___field_y')
Traceback (most recent call last):
...
FieldDoesNotExist: ModelX has no field named 'field_y'
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_admin.py | ||
| test_multidb.py | ||
| test_orm.py | ||
| test_regression.py | ||
| test_utils.py | ||