| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-09-19 | Fixed #36369 -- Cleared additional cached properties in apps.clear_cache(). | Senthil Kumar | |
| Thanks Clifford Gama for the report. 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-04-01 | Fixed typo in django/db/models/options.py. | Clifford Gama | |
| 2025-01-14 | Refs #36075 -- Adjusted MTI handling of _non_pk_concrete_field_names. | Simon Charette | |
| Regression in bf7b17d16d3978b2e1cee4a0f7ce8840bd1a8dc4. Thanks Sage Abdullah for the report. | |||
| 2025-01-13 | Refs #36075 -- Used field in pk_fields over field.primary_key. | Sarah Boyce | |
| 2024-11-29 | Fixed #373 -- Added CompositePrimaryKey. | Bendeguz Csirmaz | |
| Thanks Lily Foote and Simon Charette for reviews and mentoring this Google Summer of Code 2024 project. Co-authored-by: Simon Charette <charette.s@gmail.com> Co-authored-by: Lily Foote <code@lilyf.org> | |||
| 2024-05-07 | Fixed #35407 -- Cached model's Options.swapped. | Adam Johnson | |
| 2024-03-17 | Fixed #35301 -- Fixed Options._property_names for overriden properties. | Adam Johnson | |
| Regression in faeb92ea13f0c1b2cc83f45b512f2c41cfb4f02d. | |||
| 2024-03-09 | Fixed #35270 -- Optimized model's Options._property_names. | Adam Johnson | |
| co-authored-by: Nick Pope <nick@nickpope.me.uk> | |||
| 2024-03-08 | Refs #30397 -- Optimized interpolation of index and constraint names a bit more. | Nick Pope | |
| 2024-03-07 | Refs #30397 -- Optimized interpolation of index and constraint names a bit. | Adam Johnson | |
| 2024-02-26 | Fixed #35241 -- Cached model's full parent list. | Adam Johnson | |
| co-authored-by: Keryn Knight <keryn@kerynknight.com> co-authored-by: Natalia <124304+nessita@users.noreply.github.com> co-authored-by: David Smith <smithdc@gmail.com> co-authored-by: Paolo Melchiorre <paolo@melchiorre.org> | |||
| 2024-02-19 | Fixed #35232 -- Cached model's Options.verbose_name_raw. | Adam Johnson | |
| 2023-09-18 | Refs #27236 -- Removed Meta.index_together per deprecation timeline. | Mariusz Felisiak | |
| 2023-08-09 | Fixed #34586 -- Made QuerySet.create() raise ValueError for reverse ↵ | Mariana | |
| one-to-many relations. | |||
| 2023-06-20 | Refs #34634 -- Fixed creating diamond-shaped MTI objects with ancestors ↵ | Akash Kumar Sen | |
| inherited from different paths. Co-authored-by: Simon Charette <charette.s@gmail.com> | |||
| 2023-05-05 | Refs #27236 -- Made more cosmetic edits to Meta.index_together deprecation. | Mariusz Felisiak | |
| 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-12-28 | Fixed #18468 -- Added support for comments on columns and tables. | kimsoungryoul | |
| Thanks Jared Chung, Tom Carrick, David Smith, Nick Pope, and Mariusz Felisiak for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk> | |||
| 2022-09-29 | Refs #32095 -- Added model's Options._non_pk_concrete_field_names property. | sarahboyce | |
| 2022-07-21 | Refs #27236 -- Made cosmetic edits to Meta.index_together deprecation. | Mariusz Felisiak | |
| This should make it more straightforward to move forward when deprecation ends. | |||
| 2022-07-12 | Fixed #27236 -- Deprecated Meta.index_together in favor of Meta.indexes. | David Wobrock | |
| This also deprecates AlterIndexTogether migration operation. | |||
| 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-12-06 | Fixed #33335 -- Made model validation ignore functional unique constraints. | Hannes Ljungberg | |
| Regression in 3aa545281e0c0f9fac93753e3769df9e0334dbaa. Thanks Hervé Le Roy for the report. | |||
| 2021-11-03 | Fixed #32996 -- Cached PathInfos on relations. | Keryn Knight | |
| PathInfo values are ostensibly static over the lifetime of the object for which they're requested, so the data can be memoized, quickly amortising the cost over the process' duration. | |||
| 2021-10-28 | Removed unused model's Options.installed. | Mariusz Felisiak | |
| Unused since f9698c43918c118a29516cbef4e23c197eb2dc25. | |||
| 2020-12-15 | Fixed #31007 -- Allowed specifying type of auto-created primary keys. | Tom Forbes | |
| This also changes the default type of auto-created primary keys for new apps and projects to BigAutoField. | |||
| 2020-04-07 | Refs #27666 -- Ensured relationship consistency on delayed reloads. | Simon Charette | |
| Delayed reloads of state models broke identity based relationships between direct and non-direct ancestors. Basing models.Options related objects map of model labels instead of their identity ensured relationship consistency is maintained. Refs #30966. Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com> | |||
| 2020-02-19 | Refs #31187 -- Added total_unique_constraints property to model's Options. | Mariusz Felisiak | |
| 2020-02-04 | Simplified imports from django.db and django.contrib.gis.db. | Nick Pope | |
| 2020-01-29 | Used model's Options.label/label_lower where applicable. | Mariusz Felisiak | |
| 2020-01-16 | Fixed #29998 -- Allowed multiple OneToOneFields to the parent model. | Mariusz Felisiak | |
| We assumed that any OneToOneField's in a child model must be the parent link and raised an error when parent_link=True was not specified. This patch allows to specify multiple OneToOneField's to the parent model. OneToOneField's without a custom related_name will raise fields.E304 and fields.E305 so this should warn users when they try to override the auto-created OneToOneField. | |||
| 2020-01-07 | Simplified model's Options.add_field() a bit. | Taoup | |
| 2019-09-09 | Refs #29444 -- Allowed returning multiple fields from INSERT statements on ↵ | Johannes Hoppe | |
| PostgreSQL. Thanks Florian Apolloner, Tim Graham, Simon Charette, Nick Pope, and Mariusz Felisiak for reviews. | |||
| 2019-07-08 | Fixed #30397 -- Added app_label/class interpolation for names of indexes and ↵ | can | |
| constraints. | |||
| 2019-02-06 | Fixed #30159 -- Removed unneeded use of OrderedDict. | Nick Pope | |
| Dicts preserve order since Python 3.6. | |||
| 2019-01-17 | Refs #28750 -- Removed suppport for model Meta.manager_inheritance_from_future. | Tim Graham | |
| 2018-07-10 | Fixed #11964 -- Added support for database check constraints. | Ian Foote | |
| 2018-05-16 | Fixed #8936 -- Added a view permission and a read-only admin. | olivierdalang | |
| Co-authored-by: Petr Dlouhy <petr.dlouhy@email.cz> Co-authored-by: Olivier Dalang <olivier.dalang@gmail.com> | |||
| 2018-01-12 | Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵ | Дилян Палаузов | |
| continue statements. | |||
| 2017-10-31 | Fixed #28750 -- Allowed models to define ↵ | Charlie Denton | |
| Meta.manager_inheritance_from_future for backwards compatibility. Refs 631f4ab06112aca5bd6a57b81159048f936050bf. | |||
| 2017-09-22 | Refs #27532 -- Removed Model._meta.has_auto_field per deprecation timeline. | Tim Graham | |
| 2017-09-22 | Fixed #27332 -- Added FilteredRelation API for conditional join (ON clause) ↵ | Nicolas Delaby | |
| support. Thanks Anssi Kääriäinen for contributing to the patch. | |||
| 2017-09-07 | Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()." | Tim Graham | |
| This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better. | |||
| 2017-08-31 | Simplified model's Options._get_fields() a bit. | Sergey Fedoseev | |
| 2017-08-23 | Removed unneeded iter() calls. | Sergey Fedoseev | |
| A few of these were unnecessarily added in 2b281cc35ed9d997614ca3c416928d7fabfef1ad. | |||
| 2017-06-28 | Fixed #27818 -- Replaced try/except/pass with contextlib.suppress(). | Mads Jensen | |
| 2017-06-05 | Fixed #28269 -- Fixed Model.__init__() crash on models with a field that has ↵ | Adam Johnson | |
| an instance only descriptor. Regression in d2a26c1a90e837777dabdf3d67ceec4d2a70fb86. | |||
| 2017-06-01 | Refs #23968 -- Removed unnecessary lists, generators, and tuple calls. | Jon Dufresne | |
