Maybe you're looking for 

MyModel.__name__

>>> from apps.myapp import models as m
>>> m.Display.__name__
'Display'
>>>

Cheers,
Cliff

On Mon, 2008-06-23 at 12:57 -0700, 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