Re: Many-To-Many with extra fields

2008-09-23 Thread Nate Thelen
wrote: > hello, > > how about > > for m in Membership.objects.filter(person=ringo) : print m.date_joined > > konstantin > > On Sep 23, 4:58 pm, Nate Thelen <[EMAIL PROTECTED]> wrote: > > > So if I have a Person object "ringo" and I want to g

Re: Many-To-Many with extra fields

2008-09-23 Thread Nate Thelen
_set.all() print( Membership.objects.get(person=ringo, group=group).date_joined ) That seems very DB inefficient. Nate On Sep 19, 9:43 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Sat, Sep 20, 2008 at 8:37 AM, Nate Thelen <[EMAIL PROTECTED]> wro

Many-To-Many with extra fields

2008-09-19 Thread Nate Thelen
Looking at the docs here: http://docs.djangoproject.com/en/dev/topics/db/models/#extra-fields-on-many-to-many-relationships I cannot find any reference to how to access the data in the "Membership" table. For example, if I have a reference to the "beatles" object, how do I find the