Thanks Tiago !!!! You are Correct, that worked ! I now notice that the exception says "Queryset", and was reading "http://docs.djangoproject.com/en/dev/ref/models/querysets/" When I saw you reply. I'm new to python, but I should've noticed that. Thanks again.
Also, just in case someone this helps someone - >>> g1 = GenericUserProfile.objects.get(user=c1) >>> g1 <GenericUserProfile: aaa's profile> >>> g1.create_dt datetime.datetime(2009, 9, 15, 17, 41, 24) >>> g1.farms.add(f1) On Sep 15, 7:27 pm, Tiago Serafim <tsera...@gmail.com> wrote: > 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 -~----------~----~----~----~------~----~------~--~---