> >>> from mysite.rugs.models import Choice, Size, Price
> >>> c = Choice.objects.filter(choice=1)
> >>> c
> [<Choice: 89b>, <Choice: 89b>, <Choice: 89b>]

You can see here that your queryset maps to three objects.

> >>> c.size.name
> Traceback (most recent call last):
>   File "<console>", line 1, in ?
> AttributeError: 'QuerySet' object has no attribute 'size'

I'd try to get at just one of those three objects first.
Something like
c[0].size.name
except that you might need to use list(c)[0], I can't remember.

Chris




--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to