Commit 64bb122c authored by Tim Graham's avatar Tim Graham
Browse files

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

parent e122facb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)