Changeset 1f16213


Ignore:
Timestamp:
Jun 22, 2012, 4:41:43 AM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
a451497
Parents:
9a2cd17
git-author:
Alex Dehnert <adehnert@…> (06/22/12 04:41:43)
git-committer:
Alex Dehnert <adehnert@…> (06/22/12 04:41:43)
Message:

Sort the groups to match the (probable) input order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/change_status.py

    r9a2cd17 r1f16213  
    2929    gs = groups.models.Group.objects
    3030    if select == 'id':
    31         gs = gs.filter(id__in=vals)
     31        gs = gs.filter(id__in=vals).order_by('id')
    3232    else:
    33         gs = gs.filter(name__in=vals)
     33        gs = gs.filter(name__in=vals).order_by('name')
    3434    return gs
    3535
Note: See TracChangeset for help on using the changeset viewer.