summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJonatas CD <jonatas.cd@gmail.com>2016-09-28 18:21:03 +0200
committerTim Graham <timograham@gmail.com>2016-10-04 19:54:13 -0400
commitfbf59a29670dfc0e4e4371c27a366613550eb2d9 (patch)
tree5f4f0341e846f9e22e1fd4ad04a8c0b2458b871c /docs
parent26fd7121284a46ae497bc10cc37f9f068b3decd9 (diff)
[1.10.x] Refs #11078 -- Doc'd Meta inheritance in proxy models.
Backport of e8728f03f0bfbdb555be0a663d1608e1991d10a6 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/db/models.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt
index d08d044979..1d95a94f15 100644
--- a/docs/topics/db/models.txt
+++ b/docs/topics/db/models.txt
@@ -1084,6 +1084,8 @@ created directly as a ``Place`` object or was the parent of some other class),
referring to ``p.restaurant`` would raise a ``Restaurant.DoesNotExist``
exception.
+.. _meta-and-multi-table-inheritance:
+
``Meta`` and multi-table inheritance
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1212,6 +1214,9 @@ order by the ``last_name`` attribute when you use the proxy. This is easy::
Now normal ``Person`` queries will be unordered
and ``OrderedPerson`` queries will be ordered by ``last_name``.
+Proxy models inherit ``Meta`` attributes :ref:`in the same way as regular
+models <meta-and-multi-table-inheritance>`.
+
``QuerySet``\s still return the model that was requested
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~