Changeset bda4d86 for asadb/groups


Ignore:
Timestamp:
Nov 4, 2012, 2:45:54 AM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
72a3d90
Parents:
ef00d33
git-author:
Alex Dehnert <adehnert@…> (11/04/12 01:13:13)
git-committer:
Alex Dehnert <adehnert@…> (11/04/12 02:45:54)
Message:

Finish support for group membership update cycles

The revised workflow is that you visit a group selection page, and select a
group to update. That checks authz (ASA-#169) and then loads any old update in
the appropriate cycle (ASA-#27).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/models.py

    r54babcd rbda4d86  
    105105    def __str__(self, ):
    106106        return self.name
     107
     108    @staticmethod
     109    def involved_groups(username):
     110        current_officers = OfficeHolder.current_holders.filter(person=username)
     111        users_groups = Group.objects.filter(officeholder__in=current_officers).distinct()
     112        return users_groups
    107113
    108114    @classmethod
Note: See TracChangeset for help on using the changeset viewer.