| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-02-14 | Fixed #34280 -- Allowed specifying different field values for create ↵ | tschilling | |
| operation in QuerySet.update_or_create(). | |||
| 2023-02-01 | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | |
| 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 | |||
| 2022-10-29 | Corrected test_update_or_create_with_model_property_defaults test. | Msvstl | |
| 2022-09-30 | Fixed #32095 -- Made QuerySet.update_or_create() save only fields passed in ↵ | sarahboyce | |
| defaults or with custom pre_save(). Thanks Florian Apolloner for the initial patch. | |||
| 2022-09-27 | Added tests for QuerySet.update_or_create() with multi-table inheritance. | sarahboyce | |
| 2022-02-07 | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | |
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2018-11-27 | Switched setUp() to setUpTestData() where possible in Django's tests. | Simon Charette | |
| 2018-08-02 | Fixed #29499 -- Fixed race condition in QuerySet.update_or_create(). | Michael Sanders | |
| A race condition happened when the object didn't already exist and another process/thread created the object before update_or_create() did and then attempted to update the object, also before update_or_create() saved the object. The update by the other process/thread could be lost. | |||
| 2018-07-16 | Fixed #29413 -- Prevented evaluation of ↵ | Viktor Danyliuk | |
| QuerySet.get_or_create()/update_or_create() defaults unless needed. Removed the logic added in 81e05a418dc6f347d9627373288e773c477a9fe0 which was obsolete since dbffffa7dc95fc62cbecfd00284bde62ee796f48. | |||
| 2018-02-15 | Fixed #29126 -- Doc'd the behavior of QuerySet.update_or_create() with ↵ | Tim Graham | |
| manually specified pks. | |||
| 2017-05-27 | Fixed #28222 -- Allowed settable properties in ↵ | Alex | |
| QuerySet.update_or_create()/get_or_create() defaults. | |||
| 2017-05-01 | Refs #27795 -- Reworked get_or_create test erroneously mixing bytes and str. | Jon Dufresne | |
| As CharField.to_python() now always calls str(), assigning bytes to a CharField is no longer correct usage. Doing so results in a warning: django/db/models/fields/__init__.py:1061: BytesWarning: str() on a bytes instance Use a unique constraint violation to trigger the database error instead. Warning introduced in 301de774c21d055e9e5a7073e5bffdb52bc71079. | |||
| 2017-01-20 | Refs #23919 -- Removed unneeded str() calls | Claude Paroz | |
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-10-04 | Refs #27118 -- Reallowed using pk in QuerySet.get/update_or_create(). | François Freitag | |
| 2016-09-27 | Fixed #27271 -- Fixed a crash in runserver logging. | Sergey Fursov | |
| Allowed ServerFormatter to handle simple string messages or messages with formatting arguments. The formatter will set the server_time variable on the log record if it's required by the format string but wasn't passed in extra parameters. | |||
| 2016-09-24 | Fixed #27118 -- Made QuerySet.get_or_create()/update_or_create() error for a ↵ | François Freitag | |
| non-field in their arguments. | |||
| 2016-07-28 | Fixed #26933 -- Fixed flaky update_or_create() test from refs #26804. | Jensen Cochran | |
| 2016-07-14 | Fixed #26804 -- Fixed a race condition in QuerySet.update_or_create(). | Jensen Cochran | |
| 2016-07-12 | Fixed #26884 -- Evaluated callables in QuerySet.update_or_create()'s ↵ | Kenneth | |
| defaults when updating. | |||
| 2016-06-28 | Replaced use of TestCase.fail() with assertRaises(). | Tim Graham | |
| Also removed try/except/fail antipattern that hides exceptions. | |||
| 2016-06-03 | Fixed #26638 -- Allowed callable arguments for ↵ | Will Koster | |
| QuerySet.get_or_create()/update_or_create() defaults. | |||
| 2016-01-29 | Refs #26022 -- Used context manager version of assertRaises in tests. | Hasan | |
| 2015-06-05 | Refs #22728 - Added missing tests for defaults__exact case | Andriy Sokolovskiy | |
| 2015-02-06 | Sorted imports with isort; refs #23860. | Tim Graham | |
| 2014-12-30 | Applied ignore_warnings to Django tests | Claude Paroz | |
| 2014-10-08 | Fixed misplaced test case. | Loic Bistuer | |
| 2014-10-08 | Fixed #23611 -- update_or_create failing from a related manager | Loic Bistuer | |
| Added update_or_create to RelatedManager, ManyRelatedManager and GenericRelatedObjectManager. Added missing get_or_create to GenericRelatedObjectManager. | |||
| 2014-04-21 | Consolidated get_or_create tests. | Aymeric Augustin | |
| 2014-04-16 | Fixed flake8 warnings introduced in recent commits. | Simon Charette | |
| 2014-04-14 | Refs #18586 - Refactored model get_or_create test. | Liav Koren | |
| Refactored get_or_create test into several smaller test functions across two different test classes. Also converted the comments over to docstrings. | |||
| 2013-12-10 | Fixed E124 pep8 warnings. | Loic Bistuer | |
| 2013-10-19 | Removed unused local variables in tests. | Tim Graham | |
| 2013-09-22 | Translated a test to English for consistency. | Aymeric Augustin | |
| Also fixed a typo. | |||
| 2013-07-29 | Removed most of absolute_import imports | Claude Paroz | |
| Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way. | |||
| 2013-07-12 | Fixed #20429 -- Added QuerySet.update_or_create | Karol Sikora | |
| Thanks tunixman for the suggestion and Loic Bistuer for the review. | |||
| 2013-06-10 | Defined available_apps in relevant tests. | Aymeric Augustin | |
| Fixed #20483. | |||
| 2013-05-27 | Fixed #16137 - Removed kwargs requirement for QuerySet.get_or_create | Tim Graham | |
| Thanks wilfred@, poirier, and charettes for work on the patch. | |||
| 2013-05-26 | Fixed get_or_create...test_savepoint_rollback test for Python3 | Shai Berger | |
| The test was always skipped on Python3 because string literals are unicode | |||
| 2013-05-26 | Fix get_or_create test failure under Oracle | Shai Berger | |
| Test expected that when given invalid utf-8, the backend should raise a DatabaseError, but the Oracle backend raises a UnicodeDecodeError. | |||
| 2013-05-22 | Fixed #20463 -- Made get_or_create more robust. | Aymeric Augustin | |
| When an exception other than IntegrityError was raised, get_or_create could fail and leave the database connection in an unusable state. Thanks UloPe for the report. | |||
| 2013-05-19 | Fixes #18896. Add tests verifying that you can get IntegrityErrors using ↵ | Pablo Recio | |
| get_or_create through relations like M2M, and it also adds a note into the documentation warning about it | |||
| 2013-04-28 | Tested that get_or_create raises IntegrityError. | Aymeric Augustin | |
| It used to raise "DatabaseError: no such savepoint" with the old transaction management. Closes #15117. | |||
| 2013-02-26 | Merged regressiontests and modeltests into the test root. | Florian Apolloner | |
