From 22fc394e3610908f302df4c81e23c9ef7876c621 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 26 Apr 2012 12:07:38 -0500 Subject: 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 --- devel/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'devel/models.py') 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) -- cgit v1.2.3-24-g4f1b