Skip to content

Commit

Permalink
[5.0.x] Restored django.db.models.F import in final code snippet adde…
Browse files Browse the repository at this point in the history
…d at the beginning of tutorial 4.

Backport of 0df5209 from main
  • Loading branch information
EndoTaishi authored and nessita committed Mar 29, 2024
1 parent 3264e88 commit 7b144e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/intro/tutorial04.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b144e7

Please sign in to comment.