summaryrefslogtreecommitdiffstats
path: root/packages
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 /packages
parent2cb4f97bb235217d6e56deded1444f5e84f08b71 (diff)
downloadarchweb-85657db05d7f65604340699cfcb9967c9e81a0ef.tar.gz
archweb-85657db05d7f65604340699cfcb9967c9e81a0ef.zip
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 'packages')
-rw-r--r--packages/views/search.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/views/search.py b/packages/views/search.py
index 57481614..65fcddb3 100644
--- a/packages/views/search.py
+++ b/packages/views/search.py
@@ -60,7 +60,8 @@ class PackageSearchForm(forms.Form):
self.fields['arch'].choices = make_choice(
[arch.name for arch in Arch.objects.all()])
self.fields['q'].widget.attrs.update({"size": "30"})
- maints = User.objects.filter(is_active=True).order_by('username')
+ maints = User.objects.filter(is_active=True).order_by(
+ 'first_name', 'last_name')
self.fields['maintainer'].choices = \
[('', 'All'), ('orphan', 'Orphan')] + \
[(m.username, m.get_full_name()) for m in maints]