mirror of
https://github.com/django/django.git
synced 2025-03-24 08:10:45 +00:00
[5.1.x] Fixed #35737 -- Clarified where "models" comes from in tutorial 7.
Backport of 01a4d8a3c741b3129d481ef3515084a199d21222 from main.
This commit is contained in:
parent
76bbeee273
commit
9da696f539
@ -232,7 +232,8 @@ underscores replaced with spaces), and that each line contains the string
|
||||
representation of the output.
|
||||
|
||||
You can improve that by using the :func:`~django.contrib.admin.display`
|
||||
decorator on that method (in :file:`polls/models.py`), as follows:
|
||||
decorator on that method (extending the :file:`polls/models.py` file that was
|
||||
created in :doc:`Tutorial 2 </intro/tutorial02>`), as follows:
|
||||
|
||||
.. code-block:: python
|
||||
:caption: ``polls/models.py``
|
||||
|
Loading…
x
Reference in New Issue
Block a user