<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/tests/modeltests/get_or_create/tests.py, branch 2.2a1</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=2.2a1</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=2.2a1'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2013-02-26T13:36:57Z</updated>
<entry>
<title>Merged regressiontests and modeltests into the test root.</title>
<updated>2013-02-26T13:36:57Z</updated>
<author>
<name>Florian Apolloner</name>
<email>florian@apolloner.eu</email>
</author>
<published>2013-02-26T08:53:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=89f40e36246100df6a11316c31a76712ebc6c501'/>
<id>urn:sha1:89f40e36246100df6a11316c31a76712ebc6c501</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert "Fixed #16865 -- Made get_or_create use read database for initial get query."</title>
<updated>2012-09-19T17:15:12Z</updated>
<author>
<name>Carl Meyer</name>
<email>carl@oddbird.net</email>
</author>
<published>2012-09-19T17:15:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=4e9a74b81df1c7aaea2f90a3a4911920e134b275'/>
<id>urn:sha1:4e9a74b81df1c7aaea2f90a3a4911920e134b275</id>
<content type='text'>
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 901af865505310a70dd02ea5b3becbf45819b652.
</content>
</entry>
<entry>
<title>Fixed #16865 -- Made get_or_create use read database for initial get query.</title>
<updated>2012-09-19T16:06:53Z</updated>
<author>
<name>Carl Meyer</name>
<email>carl@oddbird.net</email>
</author>
<published>2012-09-19T16:06:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=901af865505310a70dd02ea5b3becbf45819b652'/>
<id>urn:sha1:901af865505310a70dd02ea5b3becbf45819b652</id>
<content type='text'>
Thanks Rick van Hattem for the report and trbs for the patch.
</content>
</entry>
<entry>
<title>Fixed #18013 -- Use the new 'as' syntax for exceptions.</title>
<updated>2012-04-29T18:57:15Z</updated>
<author>
<name>Claude Paroz</name>
<email>claude@2xlibre.net</email>
</author>
<published>2012-04-28T16:09:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=3904b74a3f2f92fefe1d39281ed683c52f2fef03'/>
<id>urn:sha1:3904b74a3f2f92fefe1d39281ed683c52f2fef03</id>
<content type='text'>
Thanks Clueless for the initial patch.
Note that unittest has been purposely left out (external package only used by Python 2.6).
</content>
</entry>
<entry>
<title>Fixed #16340 -- Made `get_or_create()` re-raise any `IntegrityError` with its original traceback. Thanks to d0ugal and Jonas Obrist.</title>
<updated>2012-01-02T21:30:47Z</updated>
<author>
<name>Julien Phalip</name>
<email>jphalip@gmail.com</email>
</author>
<published>2012-01-02T21:30:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=31b1cbc623c246570e7301c0334df938d840638f'/>
<id>urn:sha1:31b1cbc623c246570e7301c0334df938d840638f</id>
<content type='text'>
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17333 bcc190cf-cafb-0310-a4f2-bffc1f526a37
</content>
</entry>
<entry>
<title>Convert all modeltests to use absolute imports, rather than relative ones.</title>
<updated>2011-10-13T18:04:12Z</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2011-10-13T18:04:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=d5a45d79fe03cad93ab5761860e9bb6fc1db4c86'/>
<id>urn:sha1:d5a45d79fe03cad93ab5761860e9bb6fc1db4c86</id>
<content type='text'>
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16975 bcc190cf-cafb-0310-a4f2-bffc1f526a37
</content>
</entry>
<entry>
<title>Fixed #12979 -- allowed using savepoints in TestCase (i.e. tests with transactions disabled), convert the GetOrCreate tests to use this.</title>
<updated>2010-10-09T06:06:24Z</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2010-10-09T06:06:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=80aa4432e64794bb67ce8dd6cd3e570841a901c3'/>
<id>urn:sha1:80aa4432e64794bb67ce8dd6cd3e570841a901c3</id>
<content type='text'>
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14061 bcc190cf-cafb-0310-a4f2-bffc1f526a37
</content>
</entry>
<entry>
<title>Fixed the get_or_create tests for postgreSQL, by using</title>
<updated>2010-09-12T22:03:44Z</updated>
<author>
<name>Malcolm Tredinnick</name>
<email>malcolm.tredinnick@gmail.com</email>
</author>
<published>2010-09-12T22:03:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=1e7b2f5a06885efe5d4436498ace4272c562f16a'/>
<id>urn:sha1:1e7b2f5a06885efe5d4436498ace4272c562f16a</id>
<content type='text'>
TransactionTestCase.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13814 bcc190cf-cafb-0310-a4f2-bffc1f526a37
</content>
</entry>
<entry>
<title>Migrate get_or_create doctests. Thanks to Alex Gaynor.</title>
<updated>2010-09-12T20:04:30Z</updated>
<author>
<name>Russell Keith-Magee</name>
<email>russell@keith-magee.com</email>
</author>
<published>2010-09-12T20:04:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=4d77fee299f1cc30d34396c58732faeb359d4bb3'/>
<id>urn:sha1:4d77fee299f1cc30d34396c58732faeb359d4bb3</id>
<content type='text'>
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13785 bcc190cf-cafb-0310-a4f2-bffc1f526a37
</content>
</entry>
</feed>
