Ticket #14007: Automatically discover models within a package without using the app_label Meta attribute

2010-07-27 Thread Mark Sandstrom
Hi, I've added a ticket with a patch for automatically discovering models within a package without using the app_label Meta attribute. An old and somewhat related ticket is: http://code.djangoproject.com/ticket/2289/. This addition is relatively small code-wise, but it does add a new feature to t

Re: Ticket #14007: Automatically discover models within a package without using the app_label Meta attribute

2010-07-29 Thread Mark Sandstrom
Hi, The process of model discovery is not modified by this patch. Continue reading for more details. - Mark polymorphic is an interesting case, as it only defines one model and that model is abstract. Therefore polymorphic doesn't need to be in INSTALLED_APPS (and perhaps my example is therefore

Re: Ticket #14007: Automatically discover models within a package without using the app_label Meta attribute

2010-07-30 Thread Mark Sandstrom
Hi Jacob, Rajeev pinpointed the use case. The company I work for has a large bit of infrastructure built around Django. Our main project consists of 6 apps, each of which has a defined role (with respect to the other apps). One of our apps has quite a few models and quite a bit a logic around thos