1
0
mirror of https://github.com/django/django.git synced 2025-03-31 19:46:42 +00:00
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
..
2013-09-08 12:20:01 -07:00
2013-09-22 14:04:10 +02:00
2013-09-22 14:04:10 +02:00
2013-09-22 14:04:10 +02:00
2013-02-26 10:00:14 +01:00