Changeset d3167b9 for asadb/forms


Ignore:
Timestamp:
Aug 25, 2011, 8:32:13 PM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage, test-hooks
Children:
fbb362a
Parents:
3275ab1
git-author:
Alex Dehnert <adehnert@…> (08/25/11 20:32:13)
git-committer:
Alex Dehnert <adehnert@…> (08/25/11 20:32:13)
Message:

Allow only active groups to submit entries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/forms/views.py

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