Explorar o código

Restored django.db.models.F import in final code snippet added at the beginning of tutorial 4.

Taishi Endo hai 1 ano
pai
achega
0df520979a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      docs/intro/tutorial04.txt

+ 1 - 0
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