django1/django
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
..
bin Made more extensive usage of context managers with open. 2012-05-05 14:06:36 +02:00
conf Cleaned up locale-related encoding issues 2012-06-12 14:23:41 +02:00
contrib Fixed #17966 -- Isolated ProfileTestCase from custom AUTH_PROFILE_MODULE 2012-06-25 20:26:17 +02:00
core Fixed #16317 -- Fixed dumpdata for self-referencing models and natural keys 2012-06-24 19:54:56 +02:00
db Fixed #17485 -- Made defer work with select_related 2012-06-26 18:08:42 +03:00
dispatch Switch to using context managers for acquiring and releasing locks. 2012-06-23 08:11:15 -07:00
forms Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
http Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
middleware Fixed #18042 -- Advanced deprecation warnings. 2012-05-03 15:27:01 +02:00
shortcuts Fixed #15010 -- Added current_app parameter to close gap between TemplateResponse and render method. Thanks, acdha. 2011-01-05 22:41:43 +00:00
template Fixed #14502 again -- saner verbatim closing token 2012-06-19 10:49:33 +12:00
templatetags Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
test Reverted 905e33f, now that DatabaseFeatures does not need confirm 2012-06-09 17:05:54 +02:00
utils Fixed our HTMLParser patches for python 2.7.4 2012-06-22 15:09:26 +02:00
views Fixed #18451 -- Vastly improved class based view documentation. 2012-06-11 10:40:23 +02:00
__init__.py Moved version code out of __init__.py. 2012-04-29 13:44:32 -05:00