No, one underscore doesn't work:

choices.get_values(fields=['poll', 'votes'], poll_id=1)

returns

TypeError: got unexpected keyword argument 'poll_id'

I'm using two underscores because that's my (limited) understanding of
the field__lookuptype syntax of the API documentation
(http://www.djangoproject.com/documentation/db_api/#field-lookups) .
Specifically, I'm trying to get all the votes of the poll with the id
of 1.

Thanks though,
John


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to