From e8728f03f0bfbdb555be0a663d1608e1991d10a6 Mon Sep 17 00:00:00 2001 From: Jonatas CD Date: Wed, 28 Sep 2016 18:21:03 +0200 Subject: [PATCH] Refs #11078 -- Doc'd Meta inheritance in proxy models. --- docs/topics/db/models.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt index e8468cd26cc83..37f325d4a3eaf 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 `. + ``QuerySet``\s still return the model that was requested ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~