On 01/13/2011 05:06 PM, Brian Craft wrote:
Are there docs somewhere for the Group methods? E.g., I discovered
through extensive googling that I can call user.groups.all(), but I
can't find docs of an "all()" method, or any other method for Groups.
If there aren't docs, how does one discover the methods?


You're looking at a RelatedManager:
http://docs.djangoproject.com/en/dev/ref/models/relations/

Managers in general:
http://docs.djangoproject.com/en/dev/topics/db/managers/

When you use a foreign key relationship, you have access to the relationship in the reverse direction using the default related manager or by using the related_name keyword argument.

Shawn

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