Changeset 6032bec for asadb/groups


Ignore:
Timestamp:
Aug 15, 2011, 12:38:05 AM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage, test-hooks
Children:
243437e
Parents:
f07e84b
git-author:
Alex Dehnert <adehnert@…> (08/15/11 00:38:05)
git-committer:
Alex Dehnert <adehnert@…> (08/15/11 00:38:05)
Message:

Show people in the group on the view page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/views.py

    r1d495e2 r6032bec  
    187187        context['adminpriv'] = self.request.user.has_perm('groups.admin_group', group)
    188188        context['notes'] = group.viewable_notes(self.request.user)
     189
     190        # People involved in the group
     191        just_roles = groups.models.OfficerRole.objects.all()
     192        roles = []
     193        for role in just_roles:
     194            roles.append((role.display_name, role, group.officers(role=role), ))
     195        context['roles'] = roles
    189196
    190197        return context
Note: See TracChangeset for help on using the changeset viewer.