blob: 92c55d85cd7a58da8b0c85fad5f05a23cc046315 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import django.forms as forms
import pytz as pytz
from account.models import UserProfile
class AccountSettingsForm(forms.ModelForm):
class Meta:
model = UserProfile
fields = ['company', 'ssh_public_key', 'pgp_public_key', 'timezone']
timezone = forms.ChoiceField(choices=[(x, x) for x in pytz.common_timezones], initial='UTC')
|