django1/django/db/models
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
..
fields Fixed #18212 -- Standardized arguments of GenericIPAddressField 2012-09-01 18:38:55 +02:00
sql Fixed #17485 regression -- only + select_related interaction 2012-09-16 22:58:40 +03:00
__init__.py Remove some code that has been dead since newforms-admin was merged, many moons ago. 2012-07-12 09:27:08 -07:00
aggregates.py Fixed #1142 -- Added multiple database support. 2009-12-22 15:18:51 +00:00
base.py Replaced some smart_xxx by force_xxx equivalent 2012-08-30 15:46:16 +02:00
constants.py Internal refactoring; moving LOOKUP_SEP up one level. 2012-09-08 19:51:36 -04:00
deletion.py remove a bunch of unnescesarry iterkeys() calls 2012-08-08 07:33:15 -07:00
expressions.py [py3] Fixed F-expression right-hand division 2012-08-15 13:28:47 +02:00
loading.py [py3] Fixed access to dict keys/values/items. 2012-08-07 12:00:22 +02:00
manager.py Fixed #16937 - added `QuerySet.prefetch_related` to prefetch many related objects. 2011-10-05 23:14:52 +00:00
options.py [py3] Replace filter/lambda by list comprehensions 2012-08-14 14:31:06 +02:00
query.py Revert "Fixed #16865 -- Made get_or_create use read database for initial get query." 2012-09-19 11:15:12 -06:00
query_utils.py [py3] Fixed access to dict keys/values/items. 2012-08-07 12:00:22 +02:00
related.py [py3] Ported django.utils.encoding. 2012-08-07 12:00:22 +02:00
signals.py Fixed #4102 -- Allow update of specific fields in model.save() 2012-05-12 10:29:41 +03:00