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
64aba7a8
Kaydet (Commit)
64aba7a8
authored
Mar 31, 2016
tarafından
Simon Charette
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #26438 -- Fixed multiple .objects typos in the docs.
Thanks Pablo Oubiña for the report.
üst
8928823b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
options.txt
docs/ref/models/options.txt
+2
-2
1.10.txt
docs/releases/1.10.txt
+2
-2
optimization.txt
docs/topics/db/optimization.txt
+1
-1
No files found.
docs/ref/models/options.txt
Dosyayı görüntüle @
64aba7a8
...
...
@@ -132,9 +132,9 @@ Django quotes column and table names behind the scenes.
>>> bar = Bar.objects.get(pk=1)
>>> # Using model name "bar" as lookup string is deprecated.
>>> Foo.object.get(bar=bar)
>>> Foo.object
s
.get(bar=bar)
>>> # You should use default_related_name "bars".
>>> Foo.object.get(bars=bar)
>>> Foo.object
s
.get(bars=bar)
``get_latest_by``
-----------------
...
...
docs/releases/1.10.txt
Dosyayı görüntüle @
64aba7a8
...
...
@@ -804,11 +804,11 @@ lookup name is deprecated. For example, since ``default_related_name`` is set
in model ``Bar``, instead of using the model name ``bar`` as the lookup::
>>> bar = Bar.objects.get(pk=1)
>>> Foo.object.get(bar=bar)
>>> Foo.object
s
.get(bar=bar)
use the default_related_name ``bars``::
>>> Foo.object.get(bars=bar)
>>> Foo.object
s
.get(bars=bar)
.. _search-lookup-replacement:
...
...
docs/topics/db/optimization.txt
Dosyayı görüntüle @
64aba7a8
...
...
@@ -161,7 +161,7 @@ So using the :ref:`example Weblog models <queryset-model-example>`::
will be quicker than:
>>> entry = Entry.object.get(headline="News Item Title")
>>> entry = Entry.object
s
.get(headline="News Item Title")
because ``id`` is indexed by the database and is guaranteed to be unique.
...
...
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