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
4f7b7ef6
Kaydet (Commit)
4f7b7ef6
authored
Şub 23, 2014
tarafından
Daniele Procida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #2363 from nheyning/22019_add_objects_doc
Fixed #22019 -- added documentation on Model attributes
üst
b645be80
e1d2a0bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
models.txt
docs/topics/db/models.txt
+13
-0
queries.txt
docs/topics/db/queries.txt
+2
-0
No files found.
docs/topics/db/models.txt
Dosyayı görüntüle @
4f7b7ef6
...
@@ -663,6 +663,19 @@ Meta`` to a model is completely optional.
...
@@ -663,6 +663,19 @@ Meta`` to a model is completely optional.
A complete list of all possible ``Meta`` options can be found in the :doc:`model
A complete list of all possible ``Meta`` options can be found in the :doc:`model
option reference </ref/models/options>`.
option reference </ref/models/options>`.
.. _model-attributes:
Model attributes
================
:attr:`~objects`
The most important attribute of a model is the
:class:`~django.db.models.Manager`, which is the interface through which
database query operations are provided to Django models and is used to
:ref:`retrieve the instances <retrieving-objects>` from the database. If no
custom Manager is defined, the default name is ``objects``. Managers are
only accessible via model classes, not the model instances.
.. _model-methods:
.. _model-methods:
Model methods
Model methods
...
...
docs/topics/db/queries.txt
Dosyayı görüntüle @
4f7b7ef6
...
@@ -129,6 +129,8 @@ go, include multiple arguments in the call to
...
@@ -129,6 +129,8 @@ go, include multiple arguments in the call to
Django will complain if you try to assign or add an object of the wrong type.
Django will complain if you try to assign or add an object of the wrong type.
.. _retrieving-objects:
Retrieving objects
Retrieving objects
==================
==================
...
...
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