django1/django/db/models/sql
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 Remove all relative imports. We have always been at war with relative imports. 2011-10-18 00:47:49 +00:00
aggregates.py Fixed #17728 -- When filtering an annotation, ensured the values used in the filter are properly converted to their database representation. This bug was particularly visible with timezone-aware DateTimeFields. Thanks gg for the report and Carl for the review. 2012-02-22 19:40:27 +00:00
compiler.py Fixed #17485 -- Made defer work with select_related 2012-06-26 18:08:42 +03:00
constants.py Switch a datastructure internal to the ORM to be a set, instead of a dictionary. 2012-04-29 22:18:30 -04:00
datastructures.py Fixed #1142 -- Added multiple database support. 2009-12-22 15:18:51 +00:00
expressions.py Fixed #10154: Allow combining F expressions with timedelta values. 2010-12-22 03:34:04 +00:00
query.py Fixed #17485 -- Made defer work with select_related 2012-06-26 18:08:42 +03:00
subqueries.py Fixed #10498 (again) -- Made sure the improvements done in r17641 have a smaller impact on speed. Thanks to Anssi Kääriäinen for the patch and Jonas Obrist for reviewing. 2012-03-13 03:48:20 +00:00
where.py Replaced 'next' testing by collections.Iterator testing. 2012-05-22 20:37:38 +02:00