On 4/17/07, Mark Engelberg <[EMAIL PROTECTED]> wrote:
> In other words, is there something called get_application_name() or
> something similar?

Every model class, and every instance of every model, has an attribute
called '_meta' which stores useful information about the model; given
a model instance 'm', you can look at 'm._meta.app_label' to get the
(normalized to lower-case) name of the application that model belongs
to.

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to