On Jun 25, 2:45 pm, Gil Sousa <gilso...@gmail.com> wrote: > Hi! > > I searched on documentation but I didn't see anything related with > managing users' groups, I want to do something like a "staff page" and > for that I need to get a list of groups, I need to get the NAME of > each group and I need to get the list of members of each group. How > can I do this? > > I am using the User and Group django Models. > > Thanks!
It's just a normal ManyToMany relationship between user and group. So you can do: {% for group in groups %} {{ group.name }} - {{ group.user_set.all }} {% endfor %} -- DR. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---