Adding the fullname to as name in user related stats

remotes/origin/enhancement/email-actions
Jesús Espino 2013-11-13 16:54:59 +01:00
parent 376579076a
commit 07c8d460cd
1 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,7 @@ def _count_owned_object(user_obj, counting_storage):
counting_storage[user_obj.id] = {} counting_storage[user_obj.id] = {}
counting_storage[user_obj.id]['count'] = 1 counting_storage[user_obj.id]['count'] = 1
counting_storage[user_obj.id]['username'] = user_obj.username counting_storage[user_obj.id]['username'] = user_obj.username
counting_storage[user_obj.id]['name'] = user_obj.get_full_name()
counting_storage[user_obj.id]['id'] = user_obj.id counting_storage[user_obj.id]['id'] = user_obj.id
counting_storage[user_obj.id]['color'] = user_obj.color counting_storage[user_obj.id]['color'] = user_obj.color
else: else:
@ -88,6 +89,7 @@ def _count_owned_object(user_obj, counting_storage):
counting_storage[0] = {} counting_storage[0] = {}
counting_storage[0]['count'] = 1 counting_storage[0]['count'] = 1
counting_storage[0]['username'] = 'Unassigned' counting_storage[0]['username'] = 'Unassigned'
counting_storage[0]['name'] = 'Unassigned'
counting_storage[0]['id'] = 0 counting_storage[0]['id'] = 0
counting_storage[0]['color'] = 'black' counting_storage[0]['color'] = 'black'