mirror of
https://github.com/django/django.git
synced 2025-01-11 10:56:28 +00:00
[5.0.x] Restored django.db.models.F import in final code snippet added at the beginning of tutorial 4.
Backport of 0df520979a
from main
This commit is contained in:
parent
3264e88347
commit
7b144e7cae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user