#30864: Document and endorse django.utils.decorators.classproperty
-------------------------------------+-------------------------------------
Reporter: Julian Gonggrijp | Owner: Deep
| Sukhwani
Type: New feature | Status: assigned
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: utils classproperty | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Deep Sukhwani):
Replying to [comment:15 felixxm]:
> This is a new feature so it goes only to the current master and should
be targeted to the Django 3.1. `versionchanged` annotation is not
necessary, you should add `versionadded` instead.
This feature (`classproperty` decorator) did exist in previous version,
however it was part of a different module `django.utils.decorators` and in
version 3.1 it is moved to `django.utils.functional`
Ref: https://docs.djangoproject.com/en/dev/releases/3.1/#id1, it says
> `django.utils.decorators.classproperty()` decorator is moved to
`django.utils.functional.classproperty()`
--
Ticket URL: <https://code.djangoproject.com/ticket/30864#comment:16>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.e87ffe66c2acfd50cb23b6db5de16ac5%40djangoproject.com.