mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
[3.0.x] Fixed #30775 -- Added admonition about missing imports to "Running tests" section in tutorial 5.
Backport of 44077985f5
from master
This commit is contained in:
parent
574154ef56
commit
14125bb039
2 changed files with 10 additions and 2 deletions
|
@ -443,8 +443,9 @@ models, not only for your own convenience when dealing with the interactive
|
|||
prompt, but also because objects' representations are used throughout Django's
|
||||
automatically-generated admin.
|
||||
|
||||
Note these are normal Python methods. Let's add a custom method, just for
|
||||
demonstration:
|
||||
.. _tutorial02-import-timezone:
|
||||
|
||||
Let's also add a custom method to this model:
|
||||
|
||||
.. code-block:: python
|
||||
:caption: polls/models.py
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue