diff options
| author | Deep Sukhwani <deepsukhwani@gmail.com> | 2020-03-28 18:52:54 +0530 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-03-31 10:46:48 +0200 |
| commit | 4b146e0c83891fc67a422aa22f846bb7654c4d38 (patch) | |
| tree | 379ab2bc958f952c95e22a139359dbc21faafc1e /django/utils/functional.py | |
| parent | 93ed71e05802a47774b52503cdc3442686d686c1 (diff) | |
Fixed #30864 -- Doc'd classproperty decorator.
Diffstat (limited to 'django/utils/functional.py')
| -rw-r--r-- | django/utils/functional.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py index bc3b65b709..6d38f932f9 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -50,6 +50,10 @@ class cached_property: class classproperty: + """ + Decorator that converts a method with a single cls argument into a property + that can be accessed directly from the class. + """ def __init__(self, method=None): self.fget = method |
