summaryrefslogtreecommitdiffstats
path: root/devel/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-04-26 19:07:38 +0200
committerDan McGee <dan@archlinux.org>2012-04-26 19:07:38 +0200
commit22fc394e3610908f302df4c81e23c9ef7876c621 (patch)
treed3341f94e619f34da0d0f15569164681568b8b6d /devel/models.py
parent9616aec563baff19898c5a3185bc2011734544cb (diff)
downloadarchweb-22fc394e3610908f302df4c81e23c9ef7876c621.tar.gz
archweb-22fc394e3610908f302df4c81e23c9ef7876c621.tar.xz
Add country attribute to developer profile
We can then show little flag icons later on in relevant places based off of this, such as on the developer profile, clocks page, etc. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/models.py')
-rw-r--r--devel/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/devel/models.py b/devel/models.py
index 79c56f2..fd5a034 100644
--- a/devel/models.py
+++ b/devel/models.py
@@ -3,6 +3,7 @@ import pytz
from django.db import models
from django.contrib.auth.models import User
+from django_countries import CountryField
from .fields import PGPKeyField
from main.utils import make_choice
@@ -30,6 +31,7 @@ class UserProfile(models.Model):
help_text="consists of 40 hex digits; use `gpg --fingerprint`")
website = models.CharField(max_length=200, null=True, blank=True)
yob = models.IntegerField("Year of birth", null=True, blank=True)
+ country = CountryField(blank=True)
location = models.CharField(max_length=50, null=True, blank=True)
languages = models.CharField(max_length=50, null=True, blank=True)
interests = models.CharField(max_length=255, null=True, blank=True)