Ignore:
Timestamp:
Nov 28, 2013, 11:48:36 PM (12 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, stable, stage
Children:
08b7660
Parents:
5560f6d
git-author:
Alex Dehnert <adehnert@…> (11/28/13 23:48:36)
git-committer:
Alex Dehnert <adehnert@…> (11/28/13 23:48:36)
Message:

Make issues.csv cycle-aware (ASA-#191)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/forms/views.py

    r88843ac rbeb46fb  
    498498
    499499
     500class View_GroupConfirmationCyclesList(ListView):
     501    context_object_name = "cycle_list"
     502    template_name = "membership/admin.html"
     503    model = forms.models.GroupConfirmationCycle
     504
     505    def get_context_data(self, **kwargs):
     506        context = super(View_GroupConfirmationCyclesList, self).get_context_data(**kwargs)
     507        context['pagename'] = 'groups'
     508        return context
     509
     510
    500511@permission_required('groups.view_group_private_info')
    501 def group_confirmation_issues(request, ):
     512def group_confirmation_issues(request, slug, ):
    502513    account_numbers = ("accounts" in request.GET) and request.GET['accounts'] == "1"
    503514
    504515    active_groups = groups.models.Group.active_groups
    505     group_updates = forms.models.GroupMembershipUpdate.objects.all()
     516    group_updates = forms.models.GroupMembershipUpdate.objects.filter(cycle__slug=slug, )
    506517    people_confirmations = forms.models.PersonMembershipUpdate.objects.filter(
    507518        deleted__isnull=True,
    508519        valid__gt=0,
     520        cycle__slug=slug,
    509521    )
    510522
Note: See TracChangeset for help on using the changeset viewer.