diff --git a/django/utils/decorators.py b/django/utils/decorators.py index fbcf4edf13..b338c8026c 100644 --- a/django/utils/decorators.py +++ b/django/utils/decorators.py @@ -8,7 +8,7 @@ from django.utils import six class classonlymethod(classmethod): def __get__(self, instance, owner): if instance is not None: - raise AttributeError("This method is available only on the view class.") + raise AttributeError("This method is available only on the class, not on instances.") return super(classonlymethod, self).__get__(instance, owner)