>>>> c = Choice.objects.filter(choice=1) >>>> c > [<Choice: 89b>, <Choice: 89b>, <Choice: 89b>] >>>> c.size.name > Traceback (most recent call last): > File "<console>", line 1, in ? > AttributeError: 'QuerySet' object has no attribute 'size' > > I still can't access the size and price's tied to style number 89b. I > thought that c.size.name would work (guess not),
I haven't seen the entire thread (bad mail server), yet: In this example since you are using 'filter', it is bring back the data as a list. Anyways, if you see the output at [<Stuff: 1>, <Stuff: 2>, <Stuff: 3>] you need to access it via index. e.g. c[0].size.name (assuming there is some relation between choice-size). I think:) -- Kelvin Nicholson Voice: +886 9 52152 336 Voice: +1 503 715 5535 GPG Keyid: 27449C8C Data: [EMAIL PROTECTED] Skype: yj_kelvin Site: http://www.kelvinism.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---