I can't figure out how to query the values of fields in a ManyToMany
"through" table.

For instance, say I'm working with the Beatles database in the Django
documentation (http://docs.djangoproject.com/en/dev/topics/db/models/
#extra-fields-on-many-to-many-relationships).  I want to be able to
query the date on which Paul joined the Beatles.  (As opposed to when
Ringo joined the Beatles, or when Paul joined Wings.)  Basically I
want to treat the Group table as a two-dimensional array, look up:

Group[Beatles][Paul].date_joined

and have it return:

date(1960, 8, 1)

I'd think this would be easy to do, but I've been playing around with
the command-line database API and I can't figure it out.  The
documentation I've seen describes how to use a Membership field as a
filter criteria, but not how to look up the actual value.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to