Commit History

Author SHA1 Message Date
  tschilling c5808470aa Fixed #34280 -- Allowed specifying different field values for create operation in QuerySet.update_or_create(). 2 years ago
  David Smith 097e3a70c1 Refs #33476 -- Applied Black's 2023 stable style. 2 years ago
  Msvstl 67bc2f1b99 Corrected test_update_or_create_with_model_property_defaults test. 2 years ago
  sarahboyce 6cc0f22a73 Fixed #32095 -- Made QuerySet.update_or_create() save only fields passed in defaults or with custom pre_save(). 2 years ago
  sarahboyce ae3d575ec3 Added tests for QuerySet.update_or_create() with multi-table inheritance. 2 years ago
  Mariusz Felisiak 7119f40c98 Refs #33476 -- Refactored code to strictly match 88 characters line length. 3 years ago
  django-bot 9c19aff7c7 Refs #33476 -- Reformatted code with Black. 3 years ago
  Simon Charette 84e7a9f4a7 Switched setUp() to setUpTestData() where possible in Django's tests. 6 years ago
  Michael Sanders 271542dad1 Fixed #29499 -- Fixed race condition in QuerySet.update_or_create(). 6 years ago
  Viktor Danyliuk 6ae7aaa7d6 Fixed #29413 -- Prevented evaluation of QuerySet.get_or_create()/update_or_create() defaults unless needed. 6 years ago
  Tim Graham e917ea6bec Fixed #29126 -- Doc'd the behavior of QuerySet.update_or_create() with manually specified pks. 7 years ago
  Alex 37ab3c3f9d Fixed #28222 -- Allowed settable properties in QuerySet.update_or_create()/get_or_create() defaults. 7 years ago
  Jon Dufresne b39aabc6c6 Refs #27795 -- Reworked get_or_create test erroneously mixing bytes and str. 8 years ago
  Claude Paroz 042b7350a0 Refs #23919 -- Removed unneeded str() calls 8 years ago
  Claude Paroz d7b9aaa366 Refs #23919 -- Removed encoding preambles and future imports 8 years ago
  François Freitag 1db1f74617 Refs #27118 -- Reallowed using pk in QuerySet.get/update_or_create(). 8 years ago
  Sergey Fursov 6709ea4ae9 Fixed #27271 -- Fixed a crash in runserver logging. 8 years ago
  François Freitag a5e13a0b92 Fixed #27118 -- Made QuerySet.get_or_create()/update_or_create() error for a non-field in their arguments. 8 years ago
  Jensen Cochran 83be40760a Fixed #26933 -- Fixed flaky update_or_create() test from refs #26804. 8 years ago
  Jensen Cochran d44afd8892 Fixed #26804 -- Fixed a race condition in QuerySet.update_or_create(). 8 years ago
  Kenneth 841cb45847 Fixed #26884 -- Evaluated callables in QuerySet.update_or_create()'s defaults when updating. 8 years ago
  Tim Graham c9ae09addf Replaced use of TestCase.fail() with assertRaises(). 8 years ago
  Will Koster 9899347641 Fixed #26638 -- Allowed callable arguments for QuerySet.get_or_create()/update_or_create() defaults. 8 years ago
  Hasan 3d0dcd7f5a Refs #26022 -- Used context manager version of assertRaises in tests. 9 years ago
  Andriy Sokolovskiy fc19f9315b Refs #22728 - Added missing tests for defaults__exact case 9 years ago
  Tim Graham 0ed7d15563 Sorted imports with isort; refs #23860. 10 years ago
  Claude Paroz 51890ce889 Applied ignore_warnings to Django tests 10 years ago
  Loic Bistuer 0eccf8fbea Fixed misplaced test case. 10 years ago
  Loic Bistuer ed37f7e979 Fixed #23611 -- update_or_create failing from a related manager 10 years ago
  Aymeric Augustin 25b2ce896b Consolidated get_or_create tests. 11 years ago