mirror of
https://github.com/django/django.git
synced 2025-09-27 04:29:17 +00:00
Restored django.db.models.F import in final code snippet added at the beginning of tutorial 4.
This commit is contained in:
parent
5f3cdf219d
commit
0df520979a
1 changed files with 1 additions and 0 deletions
|
@ -272,6 +272,7 @@ views and use Django's generic views instead. To do so, open the
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
:caption: ``polls/views.py``
|
:caption: ``polls/views.py``
|
||||||
|
|
||||||
|
from django.db.models import F
|
||||||
from django.http import HttpResponseRedirect
|
from django.http import HttpResponseRedirect
|
||||||
from django.shortcuts import get_object_or_404, render
|
from django.shortcuts import get_object_or_404, render
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue