Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
bdfce4db
Kaydet (Commit)
bdfce4db
authored
Tem 08, 2015
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed a confusing sentence in tutorial 5.
üst
f87e552d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
tutorial05.txt
docs/intro/tutorial05.txt
+1
-4
No files found.
docs/intro/tutorial05.txt
Dosyayı görüntüle @
bdfce4db
...
@@ -405,10 +405,7 @@ based on :class:`~django.views.generic.list.ListView`:
...
@@ -405,10 +405,7 @@ based on :class:`~django.views.generic.list.ListView`:
"""Return the last five published questions."""
"""Return the last five published questions."""
return Question.objects.order_by('-pub_date')[:5]
return Question.objects.order_by('-pub_date')[:5]
``response.context_data['latest_question_list']`` extracts the data this view
We need to amend the ``get_queryset()`` method and change it so that it also
places into the context.
We need to amend the ``get_queryset`` method and change it so that it also
checks the date by comparing it with ``timezone.now()``. First we need to add
checks the date by comparing it with ``timezone.now()``. First we need to add
an import:
an import:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment