django1/django
Carl Meyer 4e9a74b81d Revert "Fixed #16865 -- Made get_or_create use read database for initial get query."
Thanks to Jeremy Dunck for pointing out the problem with this change. If in a
single transaction, the master deletes a record and then get_or_creates a
similar record, under the new behavior the get_or_create would find the record
in the slave db and fail to re-create it, leaving the record nonexistent, which
violates the contract of get_or_create that the record should always exist
afterwards. We need to do everything against the master here in order to ensure
correctness.

This reverts commit 901af86550.
2012-09-19 11:15:12 -06:00
..
bin [py3] Added fixer for python_2_unicode_compatible. 2012-08-12 14:44:40 +02:00
conf Remove a couple unused imports. 2012-09-08 14:30:11 -06:00
contrib Added tests for d21f3d9b17. 2012-09-17 21:56:19 +02:00
core Fixed #18947 -- Don't make uploaded files executeable by default. 2012-09-17 22:53:10 +02:00
db Revert "Fixed #16865 -- Made get_or_create use read database for initial get query." 2012-09-19 11:15:12 -06:00
dispatch [py3] Fixed dispatch tests 2012-08-15 18:19:21 +02:00
forms Document and test 'type' usage in Widget attrs 2012-09-10 19:31:11 +02:00
http Fixed #18916 -- Allowed non-ASCII headers. 2012-09-07 19:08:57 -04:00
middleware fixed rfc comment typo in middleware/csrf.py 2012-09-10 12:11:24 -03:00
shortcuts Fixed #15552 -- LOGIN_URL and LOGIN_REDIRECT_URL can take URLpattern names. 2012-09-08 16:58:35 -06:00
template Fixes #18933. Fixes code example in docstring. 2012-09-09 00:35:40 -04:00
templatetags Replaced many smart_bytes by force_bytes 2012-08-29 11:20:32 +02:00
test Fixed #18980 -- Fixed assertContains regression when passed an object 2012-09-18 21:05:41 +02:00
utils Use unicode.translate to speed up js escaping. 2012-09-18 21:15:15 +02:00
views Updated docs for dates generic views. 2012-09-08 12:22:39 -04:00
__init__.py Moved version code out of __init__.py. 2012-04-29 13:44:32 -05:00