1
0
mirror of https://github.com/django/django.git synced 2025-03-14 11:20:46 +00:00
Rigel Di Scala e8262b5941 [1.7.x] Fixed #23615 -- Validate that a Model instance's "check" attribute is a method.
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".

Conflicts:
	docs/ref/checks.txt

Backport of a5c77417a6 from master
2014-10-17 00:36:43 +07:00
..
2013-12-24 12:25:17 +01:00
2013-12-24 12:25:17 +01:00
2013-11-02 23:50:49 -05:00
2013-12-10 15:12:48 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-12-10 15:12:48 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-12-10 15:12:48 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-12-14 11:59:15 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-12-24 12:25:17 +01:00
2013-11-03 10:17:58 -08:00
2013-11-02 23:48:47 -05:00
2013-11-02 23:48:47 -05:00
2013-12-14 11:59:15 -05:00
2014-02-28 09:54:53 +01:00
2013-11-02 23:48:47 -05:00
2013-11-02 23:48:47 -05:00
2013-11-02 23:48:47 -05:00
2013-11-02 23:48:47 -05:00
2013-02-26 10:00:14 +01:00