mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
Fixed #30864 -- Doc'd classproperty decorator.
This commit is contained in:
committed by
Mariusz Felisiak
parent
93ed71e058
commit
4b146e0c83
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user