#14007: Automatically discover models within a package without using the 
app_label
Meta attribute
------------------------------------------+---------------------------------
 Reporter:  m...@deliciouslynerdy.com     |       Owner:  nobody    
   Status:  new                           |   Milestone:  1.3       
Component:  Database layer (models, ORM)  |     Version:  1.2       
 Keywords:  package models model          |       Stage:  Unreviewed
Has_patch:  1                             |  
------------------------------------------+---------------------------------
 Automatically figure out the app_label for a model by looking one level up
 from the package or module named 'models'.
 If no such package or module exists, fall back to the behavior of looking
 one level up from
 the module the model is defined in.

 For 'django.contrib.sites.models', this would be 'sites'.[[BR]]
 For 'geo.models.places' this would be 'geo'.[[BR]]
 For 'polymorphic.polymorhpic_model' this would be 'polymorphic'.[[BR]]

 This allows organization of models within a package named 'models' without
 having to specify the app_label Meta attribute for each model.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14007>
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-upda...@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