OpenSlides/openslides/users/forms.py

17 lines
462 B
Python
Raw Normal View History

from django import forms
from django.conf import settings
from django.utils.translation import ugettext_lazy
from openslides.utils.forms import CssClassMixin
from .models import User
2011-07-31 10:46:29 +02:00
2012-04-14 14:31:09 +02:00
class UsersettingsForm(CssClassMixin, forms.ModelForm):
class Meta:
model = User
fields = ('username', 'title', 'first_name', 'last_name', 'about_me')
language = forms.ChoiceField(
choices=settings.LANGUAGES, label=ugettext_lazy('Language'))