1969416e64
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
17 lines
462 B
Python
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'))
|