mirror of
https://github.com/Hopiu/django.git
synced 2026-03-29 12:20:23 +00:00
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". |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| models.py | ||
| test_security.py | ||
| tests.py | ||