From 4b146e0c83891fc67a422aa22f846bb7654c4d38 Mon Sep 17 00:00:00 2001 From: Deep Sukhwani Date: Sat, 28 Mar 2020 18:52:54 +0530 Subject: Fixed #30864 -- Doc'd classproperty decorator. --- django/utils/functional.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'django/utils') 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 -- cgit v1.3