#16646: Only first meta inner class inherited with multiple abstract base 
models.
-------------------------------------+-------------------------------------
               Reporter:  varikin    |          Owner:  nobody
                   Type:  Bug        |         Status:  closed
              Milestone:             |      Component:  Database layer
                Version:  1.3        |  (models, ORM)
             Resolution:             |       Severity:  Normal
  worksforme                         |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |    Needs tests:  0
    Needs documentation:  0          |  Easy pickings:  0
Patch needs improvement:  0          |
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
Changes (by aaugustin):

 * status:  new => closed
 * needs_docs:   => 0
 * resolution:   => worksforme
 * needs_tests:   => 0
 * needs_better_patch:   => 0


Comment:

 Generally, child classes don't inherit the `Meta` class of their parents.
 (There are with two limited exceptions, `ordering` and `get_latest_by`.)
 But you seem to assume that they do. It's probably a source of confusion.

 This document explains why this is the correct behavior:
 https://docs.djangoproject.com/en/dev/topics/db/models/#meta-and-multi-
 table-inheritance

 The multiple inheritance situation is described here:
 https://docs.djangoproject.com/en/dev/topics/db/models/#multiple-
 inheritance

 Please review these sections of the documentation as they address your
 questions.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16646#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to