diff options
| author | Taishi Endo <82435332+EndoTaishi@users.noreply.github.com> | 2024-03-30 00:33:08 +0900 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2024-03-29 12:34:29 -0300 |
| commit | 7b144e7caeb58b60968f37bb4a9f221722337f1b (patch) | |
| tree | a3fdf4311b8971bd72ac82fa423d60bb8c32d0bf | |
| parent | 3264e88347c8f6acb126d2022fd273900eb77d7f (diff) | |
[5.0.x] Restored django.db.models.F import in final code snippet added at the beginning of tutorial 4.
Backport of 0df520979a5677baf9ed2801ed5c38f859edaa4d from main
| -rw-r--r-- | docs/intro/tutorial04.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt index e6ec6895fe..149b01f338 100644 --- a/docs/intro/tutorial04.txt +++ b/docs/intro/tutorial04.txt @@ -272,6 +272,7 @@ views and use Django's generic views instead. To do so, open the .. code-block:: python :caption: ``polls/views.py`` + from django.db.models import F from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404, render from django.urls import reverse |
