Add license headers
[pharos.git] / tools / pharos-dashboard / account / forms.py
1 ##############################################################################
2 # Copyright (c) 2016 Max Breitenfeldt and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10
11 import django.forms as forms
12 import pytz as pytz
13
14 from account.models import UserProfile
15
16
17 class AccountSettingsForm(forms.ModelForm):
18     class Meta:
19         model = UserProfile
20         fields = ['company', 'ssh_public_key', 'pgp_public_key', 'timezone']
21
22     timezone = forms.ChoiceField(choices=[(x, x) for x in pytz.common_timezones], initial='UTC')