diff --git a/django/core/meta/__init__.py b/django/core/meta/__init__.py index 554ba4eda0..69f6538a4c 100644 --- a/django/core/meta/__init__.py +++ b/django/core/meta/__init__.py @@ -464,6 +464,7 @@ class ModelBase(type): for k, v in attrs.items(): if k in ('__module__', '__init__', '_overrides', '__doc__'): continue # Skip the important stuff. + assert callable(v), "%r is an invalid model parameter." % k # Give the function a function attribute "custom" to designate that # it's a custom function/method. v.custom = True