blob: 14f11cda4af7b3582a4774d84c5c442eca6ae41e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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']
ssh_public_key = forms.CharField(max_length=2048, widget=forms.Textarea)
pgp_public_key = forms.CharField(max_length=2048, widget=forms.Textarea)
timezone = forms.ChoiceField(choices=[(x, x) for x in pytz.common_timezones], initial='UTC')
|