<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/tests/get_or_create, branch main</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=main</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2025-07-23T23:17:55Z</updated>
<entry>
<title>Refs #36500 -- Rewrapped long docstrings and block comments via a script.</title>
<updated>2025-07-23T23:17:55Z</updated>
<author>
<name>django-bot</name>
<email>ops@djangoproject.com</email>
</author>
<published>2025-07-23T03:41:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=69a93a88edb56ba47f624dac7a21aacc47ea474f'/>
<id>urn:sha1:69a93a88edb56ba47f624dac7a21aacc47ea474f</id>
<content type='text'>
Rewrapped long docstrings and block comments to 79 characters + newline
using script from https://github.com/medmunds/autofix-w505.
</content>
</entry>
<entry>
<title>Refs #29499 -- Fixed race condition in update_or_create() test.</title>
<updated>2025-01-15T14:36:57Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2025-01-15T00:56:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=6cfe00ee438111af38f1e414bd01976e23b39715'/>
<id>urn:sha1:6cfe00ee438111af38f1e414bd01976e23b39715</id>
<content type='text'>
The usage of time.sleep() could result in the update_or_create() thread winning
the race to create the row if the backend takes a while to create a new
connection in the main thread.

Relying on threading.Event ensures that the flow of execution is systematically
yield back and forth between the main thread and the thread in charge of
performing the background update_or_create().
</content>
</entry>
<entry>
<title>Removed obsolete test_get_or_create_raises_IntegrityError_plus_traceback() test.</title>
<updated>2024-02-21T10:50:22Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2024-02-21T10:50:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=a269d8d1d8cec2f9ae7ecc0c97a41fcf9efee580'/>
<id>urn:sha1:a269d8d1d8cec2f9ae7ecc0c97a41fcf9efee580</id>
<content type='text'>
This test was added in 31b1cbc623c246570e7301c0334df938d840638f, but is
no longer needed, as the fix was reverted in
746caf3ef821dbf7588797cb2600fa81b9df9d1d without any consequences, so
it now tests Python behavior rather than Django. Moreover, traceback
introspection is problematic for .pyc-only installations.</content>
</entry>
<entry>
<title>Fixed #34280 -- Allowed specifying different field values for create operation in QuerySet.update_or_create().</title>
<updated>2023-02-14T10:50:35Z</updated>
<author>
<name>tschilling</name>
<email>schillingt@better-simple.com</email>
</author>
<published>2023-01-31T02:39:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=c5808470aaffda661cb911b06d5b848dd7b75467'/>
<id>urn:sha1:c5808470aaffda661cb911b06d5b848dd7b75467</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #33476 -- Applied Black's 2023 stable style.</title>
<updated>2023-02-01T10:04:38Z</updated>
<author>
<name>David Smith</name>
<email>smithdc@gmail.com</email>
</author>
<published>2023-02-01T07:13:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=097e3a70c1481ee7b042b2edd91b2be86fb7b5b6'/>
<id>urn:sha1:097e3a70c1481ee7b042b2edd91b2be86fb7b5b6</id>
<content type='text'>
Black 23.1.0 is released which, as the first release of the year,
introduces the 2023 stable style. This incorporates most of last year's
preview style.

https://github.com/psf/black/releases/tag/23.1.0
</content>
</entry>
<entry>
<title>Corrected test_update_or_create_with_model_property_defaults test.</title>
<updated>2022-10-29T11:27:10Z</updated>
<author>
<name>Msvstl</name>
<email>59284206+sridhar562345@users.noreply.github.com</email>
</author>
<published>2022-10-29T11:27:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=67bc2f1b9917baec0aeb9e2596454d127178eeff'/>
<id>urn:sha1:67bc2f1b9917baec0aeb9e2596454d127178eeff</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #32095 -- Made QuerySet.update_or_create() save only fields passed in defaults or with custom pre_save().</title>
<updated>2022-09-30T04:26:19Z</updated>
<author>
<name>sarahboyce</name>
<email>sarahvboyce95@gmail.com</email>
</author>
<published>2022-09-27T13:26:02Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=6cc0f22a73970dd7c0d29d4d8d2ff9e1cc862b30'/>
<id>urn:sha1:6cc0f22a73970dd7c0d29d4d8d2ff9e1cc862b30</id>
<content type='text'>
Thanks Florian Apolloner for the initial patch.
</content>
</entry>
<entry>
<title>Added tests for QuerySet.update_or_create() with multi-table inheritance.</title>
<updated>2022-09-27T10:55:33Z</updated>
<author>
<name>sarahboyce</name>
<email>sarahvboyce95@gmail.com</email>
</author>
<published>2022-09-19T08:44:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=ae3d575ec3873d87d187783ea706a868aefc33b6'/>
<id>urn:sha1:ae3d575ec3873d87d187783ea706a868aefc33b6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #33476 -- Refactored code to strictly match 88 characters line length.</title>
<updated>2022-02-07T19:37:05Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2022-02-04T07:08:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=7119f40c9881666b6f9b5cf7df09ee1d21cc8344'/>
<id>urn:sha1:7119f40c9881666b6f9b5cf7df09ee1d21cc8344</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #33476 -- Reformatted code with Black.</title>
<updated>2022-02-07T19:37:05Z</updated>
<author>
<name>django-bot</name>
<email>ops@djangoproject.com</email>
</author>
<published>2022-02-03T19:24:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=9c19aff7c7561e3a82978a272ecdaad40dda5c00'/>
<id>urn:sha1:9c19aff7c7561e3a82978a272ecdaad40dda5c00</id>
<content type='text'>
</content>
</entry>
</feed>
