#11078: Proxy models do not inherit META.app_label
------------------------------------------+---------------------------------
 Reporter:  gsong                         |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Database layer (models, ORM)  |     Version:  SVN       
 Keywords:  proxy model app_label         |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 According to the [http://docs.djangoproject.com/en/dev/topics/db/models
 /#base-class-restrictions proxy model documentation]:
 "Proxy models inherit any `Meta` options that they don't define from their
 non-abstract model parent (the model they are proxying for)."

 In the case of `app_label`, this is not true.

 {{{
 #!python

 from django.db import models

 class Book(models.Model):
     name = models.CharField(max_length=50)

     class Meta:
         app_label = 'core'

 class Book1(Book):
     class Meta:
         proxy = True

 >>> from django.db import models
 >>> for model in models.get_models(): print model._meta
 ...
 core.book
 proxy.book1
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11078>
Django <http://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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to