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 <geoffroydecorb...@gmail.com> 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 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.
>
>

-- 
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 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.

Reply via email to