Changeset f612be5 for asadb/groups
- Timestamp:
- Feb 11, 2014, 3:30:27 AM (13 years ago)
- Branches:
- master, stable, stage
- Children:
- 7ffd1d4
- Parents:
- ff71c3a
- git-author:
- Alex Dehnert <adehnert@…> (02/11/14 03:30:27)
- git-committer:
- Alex Dehnert <adehnert@…> (02/11/14 03:30:27)
- File:
-
- 1 edited
-
asadb/groups/views.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
asadb/groups/views.py
rb523fed rf612be5 1289 1289 name_map = collections.defaultdict(lambda: ('???', '???')) 1290 1290 if nf_need_name: 1291 people_usernames = people_data.values('person')1291 people_usernames = [p.person.lower() for p in people_data] 1292 1292 name_data = groups.models.AthenaMoiraAccount.objects.filter(username__in=people_usernames) 1293 1293 for account in name_data: 1294 name_map[account.username ] = (account.first_name, account.last_name)1294 name_map[account.username.lower()] = (account.first_name, account.last_name) 1295 1295 1296 1296 # Set up special fields … … 1317 1317 if nf_need_name: 1318 1318 def fmt(p): 1319 first, last = name_map[p ]1319 first, last = name_map[p.lower()] 1320 1320 ctx = {'user': p, 'first': first, 'last': last} 1321 1321 return nf_fmt % ctx
Note: See TracChangeset
for help on using the changeset viewer.