Ignore:
Timestamp:
Nov 17, 2013, 4:01:35 AM (12 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, stable, stage
Children:
db8b482
Parents:
7431d13
git-author:
Alex Dehnert <adehnert@…> (11/17/13 03:59:57)
git-committer:
Alex Dehnert <adehnert@…> (11/17/13 04:01:35)
Message:

List only adminned groups in anti-hazing select

When selecting groups for the membership update and anti-hazing form, this
includes only the groups that the user is an admin of, not all groups. With the
previous commit, this fixes ASA-#181.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/forms/views.py

    re0ed952 r88843ac  
    252252    cycle = forms.models.GroupConfirmationCycle.latest()
    253253
    254     users_groups = groups.models.Group.involved_groups(request.user.username)
     254    users_groups = groups.models.Group.admin_groups(request.user.username)
    255255    qs = membership_update_qs.filter(pk__in=users_groups)
    256256
     
    261261        queryset=qs,
    262262        title="Submit membership update for...",
    263         msg="The list below contains only groups that list you as being involved. You must be an administrator of a group to submit an update.",
    264263    )
    265264
Note: See TracChangeset for help on using the changeset viewer.