I just tried this out from the shell - for me __class__ returns the name 
of the class, not the parent class. If you want just the name and not 
all the other junk that goes with it, you can use obj.__class__.__name__.

-Dan

mwebs wrote:
> Hi,
>
> thanks for your answer but I already tried this and it returns
> something like this: <class 'django.db.models.base.ModelBase'>
>
> But I only need the Name of the class. And it seems that __class__
> returns the parent class of my model...
>
> is there any other way?
> >   

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