#11078: Proxy models do not inherit META.app_label
-------------------------------------+-------------------------------------
     Reporter:  gsong                |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  proxy model          |             Triage Stage:  Accepted
  app_label                          |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by marco-santamaria):

 Only the 'ordering' and 'get_latest_by' meta attributes get copied in the
 __new__ method of ModelBase.

 Therefore, if a meta attribute is not in ['ordering', 'get_latest_by'], it
 will not be inherited by the Meta class in the proxy model.

 A pull request that removes that statement from the documentation has been
 proposed. See https://github.com/django/django/pull/4531

--
Ticket URL: <https://code.djangoproject.com/ticket/11078#comment:6>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.ca2527bf8d7c6319ef6e3a05ebddd9b4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to