<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/tests/modeltests/get_or_create, branch 4.2.29</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=4.2.29</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=4.2.29'/>
<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>[py3] Refactored __unicode__ to __str__.</title>
<updated>2012-08-12T12:44:40Z</updated>
<author>
<name>Aymeric Augustin</name>
<email>aymeric.augustin@m4x.org</email>
</author>
<published>2012-08-12T10:32:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=d4a0b27838c815af87698920cc4db7d2afd6f05b'/>
<id>urn:sha1:d4a0b27838c815af87698920cc4db7d2afd6f05b</id>
<content type='text'>
* Renamed the __unicode__ methods
* Applied the python_2_unicode_compatible decorator
* Removed the StrAndUnicode mix-in that is superseded by
  python_2_unicode_compatible
* Kept the __unicode__ methods in classes that specifically
  test it under Python 2
</content>
</entry>
<entry>
<title>Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.</title>
<updated>2012-06-07T16:08:47Z</updated>
<author>
<name>Claude Paroz</name>
<email>claude@2xlibre.net</email>
</author>
<published>2012-06-07T16:08:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=4a103086d5c67fa4fcc53c106c9fdf644c742dd8'/>
<id>urn:sha1:4a103086d5c67fa4fcc53c106c9fdf644c742dd8</id>
<content type='text'>
Thanks Vinay Sajip for the support of his django3 branch and
Jannis Leidel for the review.
</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 #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing.</title>
<updated>2011-07-13T09:35:51Z</updated>
<author>
<name>Jannis Leidel</name>
<email>jannis@leidel.info</email>
</author>
<published>2011-07-13T09:35:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=24f4764a48e4141923a78c8820e4cd7b411ec0fc'/>
<id>urn:sha1:24f4764a48e4141923a78c8820e4cd7b411ec0fc</id>
<content type='text'>
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 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>
</feed>
