Fixed #32421 -- Made admindocs ModelDetailView show model cached properties.

This commit is contained in:
Ramon Saraiva 2021-02-10 09:33:57 -03:00 committed by Mariusz Felisiak
parent 4372233ebf
commit dcb094abe8
5 changed files with 21 additions and 4 deletions

View file

@ -55,6 +55,10 @@ system along with all the fields, properties, and methods available on it.
Relationships to other models appear as hyperlinks. Descriptions are pulled
from ``help_text`` attributes on fields or from docstrings on model methods.
.. versionchanged:: 4.0
Older versions don't display model cached properties.
A model with useful documentation might look like this::
class BlogEntry(models.Model):

View file

@ -43,6 +43,8 @@ Minor features
* The admindocs now allows esoteric setups where :setting:`ROOT_URLCONF` is not
a string.
* The model section of the ``admindocs`` now shows cached properties.
:mod:`django.contrib.auth`
~~~~~~~~~~~~~~~~~~~~~~~~~~