1
0
mirror of https://github.com/django/django.git synced 2024-11-19 07:54:07 +00:00
django/tests/regressiontests/defer_regress
Anssi Kääriäinen b6c356b7bb Fixed #17485 -- Made defer work with select_related
This commit tackles a couple of issues. First, in certain cases there
were some mixups if field.attname or field.name should be deferred.
Field.attname is now always used.

Another issue tackled is a case where field is both deferred by
.only(), and selected by select_related. This case is now an error.

A lot of thanks to koniiiik (Michal Petrucha) for the patch, and
to Andrei Antoukh for review.
2012-06-26 18:08:42 +03:00
..
__init__.py Fixed deferred loading of fields with default values. 2009-03-22 01:45:22 +00:00
models.py Fixed #17485 -- Made defer work with select_related 2012-06-26 18:08:42 +03:00
tests.py Fixed #17485 -- Made defer work with select_related 2012-06-26 18:08:42 +03:00