Le 9 mars 2010 à 18:42, Edgard Matos a écrit : > Caros, > > Tenho um object no django e quero pegar todos os objetos daquele mesmo tipo. > Sendo que eu não sei qual é o tipo deste objeto em tempo de execução. > > Alguém sabe como fazer isso? > Obrigado!
Hi, take a shot with this, it should work: your_object.__class__.objects.all() hope it helps. -- Romain Gaches rom...@ssji.net -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.