| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-11-06 | Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly. | Hasan Ramezani | |
| This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2020-07-31 | Fixed #27719 -- Added QuerySet.alias() to allow creating reusable aliases. | Alexandr Tatarinov | |
| QuerySet.alias() allows creating reusable aliases for expressions that don't need to be selected but are used for filtering, ordering, or as a part of complex expressions. Thanks Simon Charette for reviews. | |||
| 2020-03-05 | Fixed #29129 -- Skipped UPDATE when adding a model instance with inherited ↵ | Abhijeet Viswa | |
| primary key that has a default. | |||
| 2020-02-04 | Simplified imports from django.db and django.contrib.gis.db. | Nick Pope | |
| 2019-10-01 | Fixed #30651 -- Made __eq__() methods return NotImplemented for not ↵ | ElizabethU | |
| implemented comparisons. Changed __eq__ to return NotImplemented instead of False if compared to an object of the same type, as is recommended by the Python data model reference. Now these models can be compared to ANY (or other objects with __eq__ overwritten) without returning False automatically. | |||
| 2019-08-19 | Fixed #29260 -- Skipped an UPDATE when adding a model instance with primary ↵ | Hasan Ramezani | |
| key that has a default. | |||
| 2019-05-12 | Fixed #6785 -- Made QuerySet.get() fetch a limited number of rows. | Amir Hadi | |
| Co-authored-by: Tim Graham <timograham@gmail.com> Co-authored-by: Patryk Zawadzki <patrys@room-303.com> Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2019-04-24 | Refs #30254 -- Added tests for Model.__hash__() inheritance. | Carlton Gibson | |
| 2018-11-27 | Switched setUp() to setUpTestData() where possible in Django's tests. | Simon Charette | |
| 2018-11-15 | Added a test for a lookup in Model.refresh_from_db(fields=[...]). | Hasan Ramezani | |
| 2018-11-06 | Used QuerySet.bulk_create() in a couple tests. | oliver | |
| 2018-09-18 | Fixed #23646 -- Added QuerySet.bulk_update() to efficiently update many models. | Tom Forbes | |
| 2018-08-20 | Fixed #29625 -- Made Model.refresh_from_db() clear prefetch related caches. | Ming Qin | |
| 2018-06-25 | Fixed #29517 -- Rephrased error message when passing incorrect kwarg to ↵ | Federico Bond | |
| model constructor | |||
| 2018-04-19 | Fixed #28574 -- Added QuerySet.explain(). | Tom | |
| 2018-01-30 | Fixed #29076 -- Made Model.refresh_from_db() clear cached relationships even ↵ | Jon Dufresne | |
| if the related id doesn't change. | |||
| 2017-10-12 | Fixed #27846 -- Made Model.refresh_from_db() clear cached relations. | Paulo | |
| 2017-09-25 | Removed DatabaseFeatures.supports_microsecond_precision. | Tim Graham | |
| MySQL 5.5 (refs #28552) was the last database to use it. | |||
| 2017-07-29 | Used assertRaisesMessage() to test Django's error messages. | Mads Jensen | |
| 2017-05-27 | Fixed #28249 -- Removed unnecessary dict.keys() calls. | Jon Dufresne | |
| iter(dict) is equivalent to iter(dict.keys()). | |||
| 2017-02-07 | Converted usage of ugettext* functions to their gettext* aliases | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-25 | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | |
| 2017-01-18 | Refs #23919 -- Removed python_2_unicode_compatible decorator usage | Claude Paroz | |
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2017-01-14 | Fixed #27718 -- Added QuerySet.union(), intersection(), difference(). | Florian Apolloner | |
| Thanks Mariusz Felisiak for review and Oracle assistance. Thanks Tim Graham for review and writing docs. | |||
| 2016-12-14 | Moved test_field_ordering to the model_fields package. | Morgan Aubert | |
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
| 2016-06-21 | Fixed #26787 -- Documented deleting and reloading of model instance fields. | Tim Graham | |
| Thanks Julien Hartmann for the report. | |||
| 2016-06-16 | Fixed #26747 -- Used more specific assertions in the Django test suite. | Jon Dufresne | |
| 2016-05-18 | Fixed #26620 -- Made Model.refresh_from_db() fail when passed unknown kwargs. | Marti Raudsepp | |
| 2016-05-17 | Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify ↵ | Loïc Bistuer | |
| models' default and base managers. This deprecates use_for_related_fields. Old API: class CustomManager(models.Model): use_for_related_fields = True class Model(models.Model): custom_manager = CustomManager() New API: class Model(models.Model): custom_manager = CustomManager() class Meta: base_manager_name = 'custom_manager' Refs #20932, #25897. Thanks Carl Meyer for the guidance throughout this work. Thanks Tim Graham for writing the docs. | |||
| 2016-04-08 | Fixed E128 flake8 warnings in tests/. | Tim Graham | |
| 2016-01-29 | Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵ | Hasan | |
| appropriate. | |||
| 2016-01-29 | Refs #26022 -- Used context manager version of assertRaises in tests. | Hasan | |
| 2016-01-07 | Fixed #26026 -- Fixed isinstance crash comparing EmptyQuerySet to non-QuerySet. | Anderson Resende | |
| 2015-11-21 | Fixed #25715 -- Fixed Model.refresh_from_db() with ForeignKey ↵ | Tim Graham | |
| w/on_delete=SET_NULL. | |||
| 2015-09-23 | Refs #21414 -- Removed Field.related per deprecation timeline. | Tim Graham | |
| 2015-08-22 | Tweak some examples. | Aymeric Augustin | |
| "Area man/woman" is confusing to people not familiar with the conventions of American journalism (like me). | |||
| 2015-07-27 | Fixed #21127 -- Started deprecation toward requiring on_delete for ↵ | Flavio Curella | |
| ForeignKey/OneToOneField | |||
| 2015-05-20 | Refs #24652 -- Used SimpleTestCase where appropriate. | Simon Charette | |
| 2015-04-06 | Fixed #24584 -- Fixed microsecond handling with older MySQLdb | Jon Dufresne | |
| 2015-03-25 | Renamed Field.rel attribute to remote_field | Anssi Kääriäinen | |
| Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True. | |||
| 2015-02-27 | Fixed #24418 -- Prevented crash in refresh_from_db with null fk | Claude Paroz | |
| Thanks Johannes Lerch for the report, Tim Graham for the test case, and Simon Charette for the review. | |||
| 2015-02-06 | Sorted imports with isort; refs #23860. | Tim Graham | |
| 2015-01-30 | Reverted "Fixed #6785 -- Made QuerySet.get() fetch a limited number of rows." | Tim Graham | |
| This reverts commit da79ccca1d34f427952cce4555e598a700adb8de. This optimized the unsuccessful case at the expense of the successful one. | |||
| 2015-01-30 | Fixed #24211 -- Removed ValuesQuerySet() and ValuesListQuerySet(). | Loic Bistuer | |
| Thanks Anssi Kääriäinen, Marc Tamlyn, and Tim Graham for the reviews. | |||
| 2015-01-20 | Fixed typos in code comments. | Adam Taylor | |
| 2015-01-06 | Fixed #12663 -- Formalized the Model._meta API for retrieving fields. | Daniel Pyrathon | |
| Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch! | |||
| 2014-12-23 | Fixed #21414 -- Removed RelatedObject and deprecated Field.related. | Anssi Kääriäinen | |
| 2014-11-28 | Fixed #901 -- Added Model.refresh_from_db() method | Anssi Kääriäinen | |
| Thanks to github aliases dbrgn, carljm, slurms, dfunckt, and timgraham for reviews. | |||
