Browse files

Fixed #23287 -- Updated error message for classonlymethod decorator.

  • Loading branch information...
1 parent e122fac commit 64bb122c3dede3538294bab07d5f1a1980713d31 @timgraham timgraham committed Aug 15, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/utils/decorators.py
View
2 django/utils/decorators.py
@@ -8,7 +8,7 @@
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)

0 comments on commit 64bb122

Please sign in to comment.