diff options
| author | Aliaksandr Semianiuk <a_semianiuk@wargaming.net> | 2014-05-16 23:40:00 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-05-17 08:32:05 -0400 |
| commit | 5b185ecc68c04c0ee63cf44de43d831623daa263 (patch) | |
| tree | d42aa04c0be253b5b612ca4109075c326149efb3 /docs/topics | |
| parent | a2dd618e3b4a7472fab852da450ca5eef92a922f (diff) | |
Fixed #22019 -- Added Model.objects reference documentation.
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/db/models.txt | 5 | ||||
| -rw-r--r-- | docs/topics/db/queries.txt | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt index 1571226e67..d883abf8ab 100644 --- a/docs/topics/db/models.txt +++ b/docs/topics/db/models.txt @@ -681,8 +681,9 @@ Model attributes :class:`~django.db.models.Manager`. It's 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. + custom ``Manager`` is defined, the default name is + :attr:`~django.db.models.Model.objects`. Managers are only accessible via + model classes, not the model instances. .. _model-methods: diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index 9d0663434d..d8132cb573 100644 --- a/docs/topics/db/queries.txt +++ b/docs/topics/db/queries.txt @@ -146,8 +146,9 @@ and a filter is a limiting clause such as ``WHERE`` or ``LIMIT``. You get a :class:`~django.db.models.query.QuerySet` by using your model's :class:`~django.db.models.Manager`. Each model has at least one -:class:`~django.db.models.Manager`, and it's called ``objects`` by -default. Access it directly via the model class, like so:: +:class:`~django.db.models.Manager`, and it's called +:attr:`~django.db.models.Model.objects` by default. Access it directly via the +model class, like so:: >>> Blog.objects <django.db.models.manager.Manager object at ...> |
