summaryrefslogtreecommitdiff
path: root/django/core/checks/model_checks.py
AgeCommit message (Collapse)Author
2025-06-11Removed default value for app_configs in system check functions.Adam Johnson
The documentation[0] encourages users to write functions without a default for `app_configs`, and checks are always passed the argument. [0] https://docs.djangoproject.com/en/5.2/topics/checks/
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-06-03Preferred usage of among/while to amongst/whilst.David Smith
2019-08-08Fixed #30673 -- Relaxed system check for db_table collision when database ↵Adnan Umer
routers are installed by turning the error into a warning.
2019-05-02Fixed #30396 -- Added system checks for uniqueness of indexes and ↵can
constraints names. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-01-30Fixed #30116 -- Dropped support for Python 3.5.Tim Graham
2018-12-24Fixed #20098 -- Added a check for model Meta.db_table collisions.Sanyam Khurana
2017-01-21Refs #23919 -- Removed misc references to Python 2.Tim Graham
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-05-19Fixed #26421 -- Refactored ModelSignal to use Apps.lazy_model_operation()Alex Hill
2016-05-19Refs #26421 -- Refactored Apps.lazy_model_operation() for better checks and ↵Alex Hill
tests
2016-02-12Removed unneeded hint=None/obj=None in system check messages.Tim Graham
2016-01-06Fixed #25746 -- Isolated inlined test models registration.Simon Charette
Thanks to Tim for the review.
2014-10-16Fixed #23615 -- Validate that a Model instance's "check" attribute is a method.Rigel Di Scala
The "check" name is a reserved word used by Django's check framework, and cannot be redefined as something else other than a method, or the check framework will raise an error. This change amends the django.core.checks.model_check.check_all_models() function, so that it verifies that a model instance's attribute "check" is actually a method. This new check is assigned the id "models.E020".
2014-04-10Fixed #22195 -- Used constants to define built-in tags for check framework.Tim Graham
Thanks Elvard for the patch.
2014-03-03Corrected expected test output to allow for cleanups in signal and ↵Russell Keith-Magee
compatibility checks.
2014-03-03Edited model and field checks for grammar and consistency.Russell Keith-Magee
2014-01-20Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee
This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.