Changeset 3b39edc


Ignore:
Timestamp:
Feb 11, 2014, 1:31:17 AM (13 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, stable, stage
Children:
bfc0d08
Parents:
4193cf3
git-author:
Alex Dehnert <adehnert@…> (02/11/14 01:31:17)
git-committer:
Alex Dehnert <adehnert@…> (02/11/14 01:31:17)
Message:

People lookup: force names to lowercase (ASA-#252)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/forms/models.py

    r4193cf3 r3b39edc  
    244244            results.extend(batch_results)
    245245
    246         left = set(usernames)
     246        left = set([u.lower() for u in usernames])
    247247        undergrads = []
    248248        grads = []
     
    259259        for result in results:
    260260            username = result[1]['uid'][0]
    261             left.remove(username)
     261            left.remove(username.lower())
    262262            affiliation = result[1].get('eduPersonAffiliation', ['secret'])[0]
    263263            if affiliation == 'student':
Note: See TracChangeset for help on using the changeset viewer.