Notice that the return is within []. Which means that it has returned a list.
Try this: >>> g1[0].get_modify_dt On Tue, Sep 15, 2009 at 8:23 PM, PlanetUnknown <nikhil.kodil...@gmail.com>wrote: > > I could get the user profile object like below, but when I try to view > any of its properties I just get "has no attribute xxx" - > I can see that the genericUserProfile has data in it. > > # Continued from earlier entries in django python shell > >>> g1 = GenericUserProfile.objects.filter(user=c1) > >>> g1 > [<GenericUserProfile: aaa's profile>] > >>> g1.modify_dt > Traceback (most recent call last): > File "<console>", line 1, in <module> > AttributeError: 'QuerySet' object has no attribute 'modify_dt' > > > -- Tiago Serafim --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---