summaryrefslogtreecommitdiffstats
path: root/main/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-01-08 18:49:41 +0100
committerDan McGee <dan@archlinux.org>2011-01-08 18:49:41 +0100
commite927df1a643e2c0df103ca0fe027ef295e3975e9 (patch)
tree7cc4405aa56f67b9b5da8786506186cab68bb61d /main/models.py
parentc18cd21e536592b6ed482126ee423f38b9ac9257 (diff)
parentc04d4abc88cdf0891bff2b1ce6d1d746c5b9b3c9 (diff)
downloadarchweb-e927df1a643e2c0df103ca0fe027ef295e3975e9.tar.gz
archweb-e927df1a643e2c0df103ca0fe027ef295e3975e9.tar.xz
Merge branch 'dev-timezones'
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 6128215..7ce2d2f 100644
--- a/main/models.py
+++ b/main/models.py
@@ -2,10 +2,11 @@ from django.db import models
from django.contrib.auth.models import User
from django.contrib.sites.models import Site
-from main.utils import cache_function
+from main.utils import cache_function, make_choice
from packages.models import PackageRelation
from itertools import groupby
+import pytz
from operator import attrgetter
class UserProfile(models.Model):
@@ -13,6 +14,11 @@ class UserProfile(models.Model):
"Send notifications",
default=True,
help_text="When enabled, send user 'flag out-of-date' notifications")
+ time_zone = models.CharField(
+ max_length=100,
+ choices=make_choice(pytz.all_timezones),
+ default="UTC",
+ help_text="Used for developer clock page")
alias = models.CharField(
max_length=50,
help_text="Required field")