From 3e1a43e100bf464ed31d1447cbbcdf1839a1db2e Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Thu, 30 May 2013 10:32:09 +0200 Subject: Timezones can be specified in the user's profile --- hyperkitty/views/forms.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hyperkitty/views/forms.py') diff --git a/hyperkitty/views/forms.py b/hyperkitty/views/forms.py index 9cacad8..6f6c294 100644 --- a/hyperkitty/views/forms.py +++ b/hyperkitty/views/forms.py @@ -24,6 +24,7 @@ from django.core import validators from django.contrib.auth.models import User from django.utils.safestring import mark_safe +from hyperkitty.models import UserProfile def isValidUsername(username): @@ -61,6 +62,8 @@ class RegistrationForm(forms.Form): class UserProfileForm(forms.Form): first_name = forms.CharField() last_name = forms.CharField() + timezone = forms.ChoiceField(label="Time zone", + choices=UserProfile.TIMEZONES) -- cgit