diff options
author | Dan McGee <dan@archlinux.org> | 2012-04-26 12:07:38 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-04-26 12:07:38 -0500 |
commit | 22fc394e3610908f302df4c81e23c9ef7876c621 (patch) | |
tree | d3341f94e619f34da0d0f15569164681568b8b6d /devel/models.py | |
parent | 9616aec563baff19898c5a3185bc2011734544cb (diff) |
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.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/devel/models.py b/devel/models.py index 79c56f2a..fd5a0347 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) |