diff options
author | Dan McGee <dan@archlinux.org> | 2011-11-21 17:08:23 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-11-21 17:08:23 +0100 |
commit | 85657db05d7f65604340699cfcb9967c9e81a0ef (patch) | |
tree | f46f3903be174d7e1e726a4226384e664f111828 /devel | |
parent | 2cb4f97bb235217d6e56deded1444f5e84f08b71 (diff) | |
download | archweb-85657db05d7f65604340699cfcb9967c9e81a0ef.tar.gz archweb-85657db05d7f65604340699cfcb9967c9e81a0ef.tar.xz |
Better support for non-latin full names
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')
-rw-r--r-- | devel/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/devel/views.py b/devel/views.py index 0002df0..08b19cd 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) |