summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-08-15 09:03:43 -0400
committerTim Graham <timograham@gmail.com>2014-08-15 09:03:43 -0400
commit64bb122c3dede3538294bab07d5f1a1980713d31 (patch)
tree1fd13ba265c626ebd57220969ad34e727d3aa29a
parente122facbd89c5768528f5ba3b13552d43f989757 (diff)
Fixed #23287 -- Updated error message for classonlymethod decorator.
-rw-r--r--django/utils/decorators.py2
1 files changed, 1 insertions, 1 deletions
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)