mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Fixed #29385 -- Made admindocs ModelDetailView show model properties.
Original patch by bkaluza. Tests and docs by humbertotm.
This commit is contained in:
parent
085ebc5f1a
commit
747ff7a30b
4 changed files with 25 additions and 7 deletions
|
@ -51,9 +51,13 @@ Model reference
|
|||
===============
|
||||
|
||||
The **models** section of the ``admindocs`` page describes each model in the
|
||||
system along with all the fields 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.
|
||||
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:: 2.2
|
||||
|
||||
Older versions don't display model properties.
|
||||
|
||||
A model with useful documentation might look like this::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue