Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 64bb122c3dede3538294bab07d5f1a1980713d31 1 parent e122fac
@timgraham timgraham authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.