Hi all, Is there a way to set app_label in the model Meta class dynamically? I'm trying to break up my models into separate files which now (as I understand) requires that each model specify it's app explicitly. However, I'd like to have my __init__.py in my models package handle this for me.
Example: /project /core /models __init__.py blog.py -- __init__.py: -- from blog import * for model in locals.values(): if inspect.isclass(model) and issubclass(model, models.Model): model._meta.app_label = 'core' Thanks, Dan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---