django1/django
Russell Keith-Magee 9595183d03 Fixed #13724: Corrected routing of write queries involving managers.
Previously, if a database request spanned a related object manager, the
first manager encountered would cause a request to the router, and this
would bind all subsequent queries to the same database returned by the
router. Unfortunately, the first router query would be performed using
a read request to the router, resulting in bad routing information being
used if the subsequent query was actually a write.

This change defers the call to the router until the final query is acutally
made.

It includes a small *BACKWARDS INCOMPATIBILITY* on an edge case - see the
release notes for details.

Thanks to Paul Collins (@paulcollinsiii) for the excellent debugging
work and patch.
2013-09-30 13:05:43 +08:00
..
bin Removed daily_cleanup.py script as per deprecation TL. 2013-06-28 21:48:16 -03:00
conf Removed a few trailing backslashes. 2013-09-22 14:04:10 +02:00
contrib Fixed #21186: Fixed regression when using date fields in the admin's list_filter. 2013-09-28 00:40:43 +02:00
core Fixed #21146 - DatabaseCache converts expires to python value 2013-09-26 13:11:43 +03:00
db Fixed #13724: Corrected routing of write queries involving managers. 2013-09-30 13:05:43 +08:00
dispatch Fixed #20943 -- Weakly reference senders when caching their associated receivers 2013-08-21 22:30:45 +01:00
forms Fixed #20931 -- Fixed select widgets nested choice rendering 2013-09-28 17:25:32 -07:00
http Fixed #18403 -- Initialized bad_cookies in SimpleCookie 2013-09-10 08:26:54 -04:00
middleware Deprecated SortedDict (replaced with collections.OrderedDict) 2013-08-04 07:09:39 -04:00
shortcuts Fixed a mistake in my previous commit. 2013-09-22 14:36:53 +02:00
template Removed a few trailing backslashes. 2013-09-22 14:04:10 +02:00
templatetags Removed a few trailing backslashes. 2013-09-22 14:04:10 +02:00
test Fixed #21162 -- Better emulation of staticfiles middleware. 2013-09-28 17:32:23 -03:00
utils Fix #21185: Added tests for unescape_entities. 2013-09-27 17:00:42 +02:00
views Fixed #21098 -- Applied sensitive_post_parameters to MultiValueDict 2013-09-18 09:48:36 -04:00
__init__.py Master is now pre-1.7. 2013-06-28 08:56:45 -05:00