Changeset 2c0eaa1 for asadb/forms


Ignore:
Timestamp:
May 28, 2011, 5:05:05 AM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage, test-hooks
Children:
9480c7b
Parents:
a76118f
git-author:
Alex Dehnert <adehnert@…> (05/28/11 05:05:05)
git-committer:
Alex Dehnert <adehnert@…> (05/28/11 05:05:05)
Message:

Include groups without an ActivityCategory? in FYSM

This works around https://code.djangoproject.com/ticket/16112.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/forms/views.py

    rc49fbe2 r2c0eaa1  
    120120
    121121def select_group_fysm(request, ):
    122     qobj = Q(activity_category__name='Dorm') | Q(activity_category__name='FSILG')
    123     queryset = groups.models.Group.objects.filter(~qobj)
     122    qobj = Q(activity_category__isnull = True) | ~(Q(activity_category__name='Dorm') | Q(activity_category__name='FSILG'))
     123    queryset = groups.models.Group.objects.filter(qobj)
    124124    return select_group(
    125125        request,
Note: See TracChangeset for help on using the changeset viewer.