OpenSlides/openslides/users/forms.py
Oskar Hahn 1969416e64 Implemented auth via AngularJS
Also added the derective osPerms to check if the current user has permissions.
Removed old Django views and urls for user.
Created utils.views.APIView which should be used instead of the AjaxView.

Fixes: #1470
Fixes: #1454
2015-02-16 11:42:48 +01:00

17 lines
462 B
Python

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
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'))