>>> User.objects.all()[0]
<User: Foo>
>>> User.groups
<django.db.models.fields.related.ReverseManyRelatedObjectsDescriptor object at 0x01598770>
>>> Group.user_set
<django.db.models.fields.related.ManyRelatedObjectsDescriptor object at 0x01598250>
>>> Group.objects.all()[0]
<Group: Bar>
>>> Group.objects.all()[0].user_set
<django.db.models.fields.related.ManyRelatedManager object at 0x017E3C30>
>>> Group.objects.all()[0].user_set.all()
[<User: Foo>]
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/4rXHWwhzCPQJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.