Changeset a526ed2 for asadb/forms/views.py
- Timestamp:
- Nov 29, 2013, 12:18:04 AM (12 years ago)
- Branches:
- master, stable, stage
- Children:
- 8a6faa1
- Parents:
- 08b7660
- git-author:
- Alex Dehnert <adehnert@…> (11/29/13 00:18:04)
- git-committer:
- Alex Dehnert <adehnert@…> (11/29/13 00:18:04)
- File:
-
- 1 edited
-
asadb/forms/views.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
asadb/forms/views.py
r08b7660 ra526ed2 513 513 account_numbers = ("accounts" in request.GET) and request.GET['accounts'] == "1" 514 514 515 active_groups = groups.models.Group.active_groups 515 check_groups = groups.models.Group.objects.filter(group_status__slug__in=('active', 'suspended', )) 516 check_groups = check_groups.select_related('group_status__slug') 516 517 group_updates = forms.models.GroupMembershipUpdate.objects.filter(cycle__slug=slug, ) 517 518 people_confirmations = forms.models.PersonMembershipUpdate.objects.filter( … … 523 524 buf = StringIO.StringIO() 524 525 output = csv.writer(buf) 525 fields = ['group_id', 'group_name', ' issue', 'num_confirm', 'officer_email', ]526 fields = ['group_id', 'group_name', 'group_status', 'issue', 'num_confirm', 'officer_email', ] 526 527 if account_numbers: fields.append("main_account") 527 528 output.writerow(fields) … … 531 532 group.id, 532 533 group.name, 534 group.group_status.slug, 533 535 issue, 534 536 num_confirms, … … 539 541 540 542 q_present = Q(id__in=group_updates.values('group')) 541 missing_groups = active_groups.filter(~q_present)543 missing_groups = check_groups.filter(~q_present) 542 544 #print len(list(group_updates)) 543 545 for group in missing_groups:
Note: See TracChangeset
for help on using the changeset viewer.