2012-07-07 15:26:00 +02:00
|
|
|
from django import forms
|
2012-12-16 17:26:53 +01:00
|
|
|
from django.conf import settings
|
2015-02-12 22:42:54 +01:00
|
|
|
from django.utils.translation import ugettext_lazy
|
2011-11-14 20:45:04 +01:00
|
|
|
|
2015-02-12 22:42:54 +01:00
|
|
|
from openslides.utils.forms import CssClassMixin
|
2013-09-25 10:01:01 +02:00
|
|
|
|
2015-02-12 22:42:54 +01:00
|
|
|
from .models import User
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2012-04-14 14:31:09 +02:00
|
|
|
|
2013-06-21 09:51:17 +02:00
|
|
|
class UsersettingsForm(CssClassMixin, forms.ModelForm):
|
2014-10-11 14:34:49 +02:00
|
|
|
class Meta:
|
|
|
|
model = User
|
|
|
|
fields = ('username', 'title', 'first_name', 'last_name', 'about_me')
|
2013-06-21 09:51:17 +02:00
|
|
|
|
2013-11-19 20:50:51 +01:00
|
|
|
language = forms.ChoiceField(
|
|
|
|
choices=settings.LANGUAGES, label=ugettext_lazy('Language'))
|