| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-04-18 | Fixed #37036 -- Added missing flat=True arg in DeferredAttribute.fetch_many(). | garybadwal | |
| 2026-03-21 | Refs #36883 -- Split monolithic aggregation/lookup/queries tests. | Tim Graham | |
| 2026-02-10 | Modified tests to format PKs with %s rather than %d. | Tim Graham | |
| It's how Django formats values internally and makes tests compatible with databases that use non-integer primary keys. | |||
| 2025-10-16 | Refs #28586 -- Copied fetch modes to related objects. | Adam Johnson | |
| This change ensures that behavior and performance remain consistent when traversing relationships. | |||
| 2025-10-16 | Fixed #28586 -- Added model field fetch modes. | Adam Johnson | |
| May your database queries be much reduced with minimal effort. co-authored-by: Andreas Pelme <andreas@pelme.se> co-authored-by: Simon Charette <charette.s@gmail.com> co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> | |||
| 2025-07-23 | Refs #36500 -- Rewrapped long docstrings and block comments via a script. | django-bot | |
| Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505. | |||
| 2025-01-15 | Refs #33651 -- Removed Prefetch.get_current_queryset() and ↵ | Sarah Boyce | |
| get_prefetch_queryset() per deprecation timeline. | |||
| 2024-08-28 | Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test ↵ | Simon Charette | |
| suite accordingly. Over the years we've had multiple instances of hit and misses when emitting warnings: either setting the wrong stacklevel or not setting it at all. This work adds assertions for the existing warnings that were declaring the correct stacklevel, but were lacking tests for it. | |||
| 2024-01-26 | Applied Black's 2024 stable style. | Mariusz Felisiak | |
| https://github.com/psf/black/releases/tag/24.1.0 | |||
| 2023-11-28 | Fixed #34633 -- Made create() method of reverse many-to-one managers clear ↵ | Aman Pandey | |
| prefetch_related() cache. | |||
| 2023-09-18 | Fixed #33651 -- Added support for prefetching GenericForeignKey. | Clément Escolano | |
| Co-authored-by: revanthgss <revanthgss@almabase.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2022-10-08 | Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵ | Gregor Gärtner | |
| assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com> | |||
| 2022-08-27 | Fixed #33952 -- Reallowed creating reverse foreign key managers on unsaved ↵ | David Wobrock | |
| instances. Thanks Claude Paroz for the report. Regression in 7ba6ebe9149ae38257d70100e8bfbfd0da189862. | |||
| 2022-05-31 | Fixed #33191 -- Avoided clearing cached reference when saving child after ↵ | Allen Jonathan David | |
| parent. Thanks Barry Johnson for the report. | |||
| 2022-02-22 | Fixed #19580 -- Unified behavior of reverse foreign key and many-to-many ↵ | Albert Defler | |
| relations for unsaved instances. | |||
| 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 | |
| 2021-02-04 | Fixed #32332 -- Fixed loss of parent with non-numeric pk when saving child ↵ | Hasan Ramezani | |
| after parent. Follow up to 519016e5f25d7c0a040015724f9920581551cab0. | |||
| 2020-11-13 | Changed docs and a code comment to use gender-neutral pronouns. | Nick Pope | |
| Follow up to e1b77238171cc96f4451a06fb4682e2378896238. | |||
| 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-05-15 | Refs #31395 -- Relied on setUpTestData() test data isolation in various tests. | Simon Charette | |
| 2020-04-30 | Removed unused __str__() methods in tests models. | Mariusz Felisiak | |
| Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1. | |||
| 2020-02-18 | Refs #31282 -- Clarified M2O add/remove/set with PK behaviour. | Carlton Gibson | |
| Improved error message for remove() and added tests. | |||
| 2020-02-04 | Simplified imports from django.db and django.contrib.gis.db. | Nick Pope | |
| 2019-08-02 | Fixed #30661 -- Added models.SmallAutoField. | Nick Pope | |
| 2019-07-27 | Refs #28147 -- Fixed setting of OneToOne and Foreign Key fields to None when ↵ | Jon Dufresne | |
| using attnames. Regression in 519016e5f25d7c0a040015724f9920581551cab0. | |||
| 2019-07-27 | Added tests for using attnames to assign OneToOne and Foreign Key fields. | Jon Dufresne | |
| 2019-05-21 | Fixed #28147 -- Fixed loss of assigned parent when saving child after parent. | Rob | |
| Thanks Erwin Junge for the initial patch. | |||
| 2019-05-21 | Refs #28147 -- Added test for saving nullable ForeignKey with to_field ↵ | Rob | |
| attribute after saving parent. | |||
| 2018-12-27 | Followed style guide for model attribute ordering. | Matt Wiens | |
| 2018-11-08 | Fixed #29908 -- Fixed setting of foreign key after related set access if ↵ | Simon Charette | |
| ForeignKey uses to_field. Adjusted known related objects handling of target fields which relies on from and to_fields and has the side effect of fixing a bug bug causing N+1 queries when using reverse foreign objects. Thanks Carsten Fuchs for the report. | |||
| 2018-10-28 | Fixed #29896 -- Fixed incorrect Model.save() cache relation clearing for ↵ | Tim Graham | |
| foreign keys that use to_field. Regression in ee49306176a2d2f1751cb890bd607d42c7c09196. | |||
| 2018-09-25 | Normalized spelling of "lowercase" and "lowercased". | Jon Dufresne | |
| 2017-11-09 | Fixed #27710 -- Made Model.save() invalidate cached, stale relations after a ↵ | Paulo | |
| primary key assignment. | |||
| 2017-11-06 | Fixed #28776 -- Fixed a/an/and typos in docs and comments. | Дилян Палаузов | |
| 2017-08-10 | Refs #16043 -- Refactored internal fields value cache. | Paulo | |
| * Removed all hardcoded logic for _{fieldname}_cache. * Added an internal API for interacting with the field values cache. Thanks carljm and MarkusH for support. | |||
| 2017-07-29 | Used assertRaisesMessage() to test Django's error messages. | Mads Jensen | |
| 2017-04-10 | Changed assertQuerysetEqual()s that use default Model.__str__() to ↵ | Collin Anderson | |
| assertSequenceEqual(). | |||
| 2017-02-07 | Converted usage of ugettext* functions to their gettext* aliases | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-26 | Refs #23919, #27778 -- Removed obsolete mentions of unicode. | Vytis Banaitis | |
| 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-17 | Removed Manager.use_for_related_fields and Meta.manager_inheritance_from_future. | Tim Graham | |
| Per deprecation timeline. Refs ed0ff913c648b16c4471fc9a9441d1ee48cb5420. | |||
| 2017-01-17 | Refs #25550 -- Removed support for direct assignment to the reverse side of ↵ | Tim Graham | |
| a related set. | |||
| 2016-12-07 | Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase. | Tim Graham | |
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
| 2016-08-05 | Fixed #26706 -- Made RelatedManager modification methods clear ↵ | Yoong Kang Lim | |
| prefetch_related() cache. | |||
| 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-05-17 | Fixed #20932, #25897 -- Streamlined manager inheritance. | Loïc Bistuer | |
