| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-04-02 | Fixed #36973 -- Made fields.E348 check detect further clashes between ↵ | Clifford Gama | |
| managers and related_names. Clashes were only detected for self-referential relationships, i.e. ForeignKey("self"). Refs #22977. Bug in 6888375c53476011754f778deabc6cdbfa327011. Thanks JaeHyuckSa for the thorough review! | |||
| 2025-11-23 | Refs #21961 -- Added DatabaseFeatures.supports_on_delete_db_(cascade/null) ↵ | Tim Graham | |
| feature flags. Needed on MongoDB. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2025-10-18 | Fixed #21961 -- Added support for database-level delete options for ForeignKey. | Mariusz Felisiak | |
| Thanks Simon Charette for pair programming. Co-authored-by: Nick Stefan <NickStefan12@gmail.com> Co-authored-by: Akash Kumar Sen <71623442+Akash-Kumar-Sen@users.noreply.github.com> Co-authored-by: Simon Charette <charette.s@gmail.com> | |||
| 2025-08-05 | Fixed #36530 -- Extended fields.E347 to check for ManyToManyField involving ↵ | jkhall81 | |
| CompositePrimaryKey on either side. Thanks to Jacob Walls for the report. | |||
| 2025-03-31 | Fixed #22977 -- Added system check for clashing managers and reverse related ↵ | Anthony Joseph | |
| fields. With thanks to Konrad Świat, Loïc Bistuer, Russell Keith-Magee, and Mariusz Felisiak. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2025-03-28 | Fixed #36239 -- Fixed a crash in ManyToManyField.through_fields check when ↵ | saJaeHyukc | |
| to model is invalid. Signed-off-by: saJaeHyukc <wogur981208@gmail.com> | |||
| 2025-01-02 | Fixed #36034 -- Added system check for ↵ | Mariusz Felisiak | |
| ForeignKey/ForeignObject/ManyToManyField to CompositePrimaryKeys. | |||
| 2024-07-09 | Fixed #35580 -- Allowed related fields referencing auto-created through models. | jason_bruce | |
| 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-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-10-06 | Fixed #33131 -- Improved error messages for clashing reverse accessor names. | Bernd Wechner | |
| 2021-09-09 | Fixed #33084 -- Removed incorrect system check for ManyToManyField with ↵ | Hasan Ramezani | |
| limit_choices_to. | |||
| 2021-08-06 | Fixed #32983 -- Added system check for redundant related_name on symmetrical ↵ | Nick Touran | |
| M2M fields. Since ManyToManyFields defined with `symmetrical=True` do not add a related field to the target model, including a `related_name` argument will never do what the coder likely expects. This makes including a related_name with a symmetrical model raise a system check warning. ticket-32983 | |||
| 2020-12-30 | Fixed #32294 -- Prevented ManyToManyField's hidden related name collisions ↵ | manav014 | |
| between apps. | |||
| 2020-12-29 | Added app labels to related fields checks messages E302-E305. | Mariusz Felisiak | |
| 2020-02-28 | Fixed #31310 -- Fixed hints in checks for using intermediate model with ↵ | Matheus Cunha Motta | |
| ambiguous foreign key. symmetrical=False is not required since 87b1ad6e7351464c60e751b483d9dfce3a2d3382. | |||
| 2020-02-28 | Refs #31310 -- Added test for check for using intermediate model with ↵ | Matheus Cunha Motta | |
| ambiguous foreign key from model. | |||
| 2020-02-27 | Fixed #31185 -- Fixed detecting of unique fields in ForeignKey/ForeignObject ↵ | Valze | |
| checks when using Meta.constraints. | |||
| 2020-02-04 | Simplified imports from django.db and django.contrib.gis.db. | Nick Pope | |
| 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. | |||
| 2019-06-21 | Fixed #30421 -- Allowed symmetrical intermediate table for self-referential ↵ | Nadège Michel | |
| ManyToManyField. | |||
| 2019-01-14 | Refs #28478 -- Prevented database feature based skipping on tests ↵ | Simon Charette | |
| disallowing queries. Database features may require a connection to be established to determine whether or not they are enabled. | |||
| 2017-07-11 | Made assertions in invalid_models_tests consistent. | Adam Johnson | |
| 2017-03-11 | Fixed #27904 -- Added a system check that Field.validators are callable. | Adam Chainz | |
| 2017-01-19 | Refs #23919 -- Removed str() conversion of type and method __name__. | Simon Charette | |
| 2017-01-18 | Refs #23919 -- Removed six.PY2/PY3 usage | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2017-01-17 | Refs #21127 -- Required on_delete for ForeignKey/OneToOneField. | Tim Graham | |
| Per deprecation timeline. | |||
| 2016-11-22 | Fixed #27295 -- Added a system check to prohibit model names that start or ↵ | Quentin Fulsher | |
| end with an underscore or contain double underscores. | |||
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
| 2016-08-16 | Moved model_validation tests to invalid_models_tests. | Tim Graham | |
| 2016-07-21 | Refs #26796 -- Fixed ManyToManyField's limit_choices_to warning without a ↵ | Kevan Swanberg | |
| through model. | |||
| 2016-07-08 | Fixed #26796 -- Added a system check for m2m fields with ignored ↵ | Anderson Resende | |
| limit_choices_to. | |||
| 2016-06-30 | Fixed #25292 -- Fixed crash in ManyToManyField.through_fields check. | Andrew Nester | |
| 2016-06-09 | Fixed #26648 -- Added a system check for invalid related_query_name's ↵ | Michal Petrucha | |
| containing underscores. | |||
| 2016-06-09 | Fixed #26718 -- Added system check for existence of the fields specified by ↵ | Sergey Fedoseev | |
| ForeignKey.to_field. | |||
| 2016-04-08 | Fixed E128 flake8 warnings in tests/. | Tim Graham | |
| 2016-02-12 | Removed unneeded hint=None/obj=None in system check messages. | Tim Graham | |
| 2016-02-08 | Fixed #26162 -- Checked query name clashes of hidden relationships. | Simon Charette | |
| Although reverse accessor clashes should be skipped query name can't be hidden. Thanks to Ian Foote and Tim Graham for the review. | |||
| 2016-01-29 | Refs #26022 -- Used context manager version of assertRaisesMessage in tests. | Hasan | |
| 2016-01-06 | Fixed #25746 -- Isolated inlined test models registration. | Simon Charette | |
| Thanks to Tim for the review. | |||
| 2015-12-24 | Fixed #25981 -- Added need to update migrations to on_delete deprecation ↵ | Luis San Pablo | |
| warning. | |||
| 2015-12-03 | Fixed many spelling mistakes in code, comments, and docs. | Josh Soref | |
| 2015-11-11 | Fixed #25723 -- Made related field checks lookup against their local apps. | Simon Charette | |
| 2015-10-16 | Fixed #25560 -- Made empty string related_name invalid. | Simon Charette | |
| Thanks to Ali Lotfi for the initial report and patch and Tim Graham for the review. | |||
| 2015-10-14 | Refs #25535 -- Minor edits to ForeignObject check changes. | Tim Graham | |
| 2015-10-12 | Fixed #25535 -- Made ForeignObject checks less strict. | Antoine Catton | |
| Check that the foreign object `from_fields` are a subset of any unique constraints on the foreign model. | |||
| 2015-10-06 | Fixed #25503 -- Fixed system check crash on ForeignKey to abstract model. | Mariusz Felisiak | |
