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
85a021b9
Kaydet (Commit)
85a021b9
authored
Kas 27, 2015
tarafından
James Beith
Kaydeden (comit)
Simon Charette
Kas 27, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[1.8.x] Fixed a typo in the managers docs.
Backport of
e03798a4
from master
üst
6914a716
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
managers.txt
docs/topics/db/managers.txt
+2
-2
No files found.
docs/topics/db/managers.txt
Dosyayı görüntüle @
85a021b9
...
...
@@ -309,11 +309,11 @@ returns a *subclass* of your base ``Manager`` with a copy of the custom
return
class MyModel(models.Model):
objects = BaseManager.from_queryset(CustomQuery
s
et)()
objects = BaseManager.from_queryset(CustomQuery
S
et)()
You may also store the generated class into a variable::
CustomManager = BaseManager.from_queryset(CustomQuery
s
et)
CustomManager = BaseManager.from_queryset(CustomQuery
S
et)
class MyModel(models.Model):
objects = CustomManager()
...
...
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