You probably want obj.__class__ On Mon, June 23, 2008 4:47 pm, mwebs wrote: > > I have an object that represents a modelClass. > > when I do print(obj) then I obviously get something like this: <class > 'package.ModelName'> > > Is there a way to retrieve only the name of the model? > > Thanks, Toni > > >
-- Rodolpho Eckhardt <[EMAIL PROTECTED]> http://rodolpho.eckhardt.com.br/ (11) 83709223 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---