summaryrefslogtreecommitdiffstats
path: root/main/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-11-21 17:08:23 +0100
committerDan McGee <dan@archlinux.org>2011-11-21 17:08:23 +0100
commit85657db05d7f65604340699cfcb9967c9e81a0ef (patch)
treef46f3903be174d7e1e726a4226384e664f111828 /main/models.py
parent2cb4f97bb235217d6e56deded1444f5e84f08b71 (diff)
downloadarchweb-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 'main/models.py')
-rw-r--r--main/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index b37468f..d7780b9 100644
--- a/main/models.py
+++ b/main/models.py
@@ -77,6 +77,8 @@ class UserProfile(models.Model):
help_text="Ideally 125px by 125px")
user = models.OneToOneField(User, related_name='userprofile')
allowed_repos = models.ManyToManyField('Repo', blank=True)
+ latin_name = models.CharField(max_length=255, null=True, blank=True,
+ help_text="Latin-form name; used only for non-Latin full names")
class Meta:
db_table = 'user_profiles'