Changeset d6f8984 for asadb/forms/views.py
- Timestamp:
- Dec 16, 2012, 6:17:52 AM (13 years ago)
- Branches:
- master, space-access, stable, stage
- Children:
- bb61160
- Parents:
- cf43bea
- git-author:
- Alex Dehnert <adehnert@…> (12/16/12 06:14:01)
- git-committer:
- Alex Dehnert <adehnert@…> (12/16/12 06:17:52)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asadb/forms/views.py
r6e247d3 rd6f8984 498 498 @permission_required('groups.view_group_private_info') 499 499 def group_confirmation_issues(request, ): 500 account_numbers = ("accounts" in request.GET) and request.GET['accounts'] == "1" 501 500 502 active_groups = groups.models.Group.active_groups 501 503 group_updates = forms.models.GroupMembershipUpdate.objects.all() … … 507 509 buf = StringIO.StringIO() 508 510 output = csv.writer(buf) 509 output.writerow(['group_id', 'group_name', 'issue', 'num_confirm', 'officer_email', ]) 511 fields = ['group_id', 'group_name', 'issue', 'num_confirm', 'officer_email', ] 512 if account_numbers: fields.append("main_account") 513 output.writerow(fields) 510 514 511 515 q_present = Q(id__in=group_updates.values('group')) … … 514 518 for group in missing_groups: 515 519 num_confirms = len(people_confirmations.filter(groups=group)) 516 output.writerow([520 fields = [ 517 521 group.id, 518 522 group.name, … … 520 524 num_confirms, 521 525 group.officer_email, 522 ]) 526 ] 527 if account_numbers: fields.append(group.main_account_id) 528 output.writerow(fields) 523 529 524 530 for group_update in group_updates: … … 536 542 537 543 for problem in problems: 538 output.writerow([544 fields = [ 539 545 group.id, 540 546 group.name, … … 542 548 num_confirms, 543 549 group.officer_email, 544 ]) 550 ] 551 if account_numbers: fields.append(group.main_account_id) 552 output.writerow(fields) 545 553 546 554
Note: See TracChangeset
for help on using the changeset viewer.