And if you were planning on hard coding a mapping of your model classes, use get_model() instead.
www.b-list.org/weblog/2007/nov/03/working-models/ Cheers, Andre Terra On 7/6/11, gontran <[email protected]> wrote: > >> Do you mean, "in a ModelAdmin subclass instance, how do I get the >> model class that instance is associated with?"? If so, self.model. > > Yes I do. > > Thank you Tom. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > 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. > > -- Sent from my mobile device -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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.

