diff options
| author | Tim Graham <timograham@gmail.com> | 2014-08-15 09:03:43 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-08-15 09:03:43 -0400 |
| commit | 64bb122c3dede3538294bab07d5f1a1980713d31 (patch) | |
| tree | 1fd13ba265c626ebd57220969ad34e727d3aa29a | |
| parent | e122facbd89c5768528f5ba3b13552d43f989757 (diff) | |
Fixed #23287 -- Updated error message for classonlymethod decorator.
| -rw-r--r-- | django/utils/decorators.py | 2 |
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) |
