Ignore:
Timestamp:
Oct 21, 2012, 10:24:25 PM (13 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
360b3d4
Parents:
11941e1
git-author:
Alex Dehnert <adehnert@…> (10/21/12 22:24:25)
git-committer:
Alex Dehnert <adehnert@…> (10/21/12 22:24:25)
Message:

Membership confirmation: report 50% violations

In membership/admin/issues.csv, report groups that report fewer students than
non-student members. Fixes ASA-#53.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/forms/views.py

    r11941e1 rde025c2  
    501501        group = group_update.group
    502502        num_confirms = len(people_confirmations.filter(groups=group))
     503        problems = []
     504
    503505        if num_confirms < 5:
     506            problems.append("confirmations")
     507
     508        num_students = group_update.num_undergrads + group_update.num_grads
     509        num_other = group_update.num_alum + group_update.num_other_affiliate + group_update.num_other
     510        if num_students < num_other:
     511            problems.append("50%")
     512
     513        for problem in problems:
    504514            output.writerow([
    505515                group.id,
    506516                group.name,
    507                 'confirmations',
     517                problem,
    508518                num_confirms,
    509519                group.officer_email,
Note: See TracChangeset for help on using the changeset viewer.