summaryrefslogtreecommitdiffstats
path: root/hyperkitty/models.py
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-05-30 10:32:09 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-05-30 10:40:48 +0200
commit3e1a43e100bf464ed31d1447cbbcdf1839a1db2e (patch)
treef8a994e4ea1352842f5e99b86062484311a03d27 /hyperkitty/models.py
parent460cc18cc7803dd857754bff0462092ca1fe7f39 (diff)
downloadhyperkitty-3e1a43e100bf464ed31d1447cbbcdf1839a1db2e.tar.gz
hyperkitty-3e1a43e100bf464ed31d1447cbbcdf1839a1db2e.tar.xz
hyperkitty-3e1a43e100bf464ed31d1447cbbcdf1839a1db2e.zip
Timezones can be specified in the user's profile
Diffstat (limited to 'hyperkitty/models.py')
-rw-r--r--hyperkitty/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/hyperkitty/models.py b/hyperkitty/models.py
index 317cb7a..8b2e514 100644
--- a/hyperkitty/models.py
+++ b/hyperkitty/models.py
@@ -23,6 +23,8 @@ from django.db import models
from django.contrib.auth.models import User
from django.contrib import admin
+import pytz
+
class Rating(models.Model):
@@ -53,6 +55,8 @@ class UserProfile(models.Model):
user = models.OneToOneField(User)
karma = models.IntegerField(default=1)
+ TIMEZONES = [ (tz, tz) for tz in pytz.common_timezones ]
+ timezone = models.CharField(max_length=100, choices=TIMEZONES, default=u"")
def __unicode__(self):
"""Unicode representation"""