[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:
Katie McLaughlin 2019-09-14 12:47:15 +10:00 committed by Mariusz Felisiak
parent 574154ef56
commit 14125bb039
2 changed files with 10 additions and 2 deletions

View file

@ -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