summaryrefslogtreecommitdiff
path: root/devel/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-11-21 10:08:23 -0600
committerDan McGee <dan@archlinux.org>2011-11-21 10:08:23 -0600
commit85657db05d7f65604340699cfcb9967c9e81a0ef (patch)
treef46f3903be174d7e1e726a4226384e664f111828 /devel/views.py
parent2cb4f97bb235217d6e56deded1444f5e84f08b71 (diff)
Better support for non-latin full namesrelease_2011-11-21
Add a 'latin_name' field to the user profile so we can better support those developers with names in non-Latin scripts, and yet still show a Latin name as necessary on the developer profile page. This field only shows up if populated. Also, use consistent sorting everywhere- rather than using username, always use first_name and last_name fields. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/views.py')
-rw-r--r--devel/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/devel/views.py b/devel/views.py
index 0002df04..08b19cd7 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -83,7 +83,7 @@ def index(request):
@never_cache
def clock(request):
devs = User.objects.filter(is_active=True).order_by(
- 'username').select_related('userprofile')
+ 'first_name', 'last_name').select_related('userprofile')
now = datetime.now()
utc_now = datetime.utcnow().replace(tzinfo=pytz.utc)