Hi,

You'll need to acces it through the membership_set:

person_instance.membership_set.date_joined

Regards,
Xavier,
Linovia.


Le 25 sept. 2011 à 17:22, mcjffld a écrit :

> 
> In the documentation (which really is great) there is this example
> 
> class Membership(models.Model):
>    person = models.ForeignKey(Person)
>    group = models.ForeignKey(Group)
>    date_joined = models.DateField()
>    invite_reason = models.CharField(max_length=64)
> 
> 
> My question is, is there a way to get the these attributes through the
> Group or Person data?
> 
> I want to render
> 
> "The Beatles", "Ringo Starr", "Needed a new drummer."
> "The Beatles", "Paul McCartney", "Wanted to form a band."
> 
> 
> I get get from the group to the person, from the person to the group,
> but I don't see how to get to the data in the intermediate table.
> 
> Is that data only available in querying?
> 
> 
> thanks,
> 
> Michael
> 
> -- 
> 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 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to