#213 fixed (User settings form - remove User groups and active

fields).
This commit is contained in:
Emanuel Schuetze 2012-06-06 14:28:37 +02:00
parent 07a682c436
commit a2e1b77bd6

View File

@ -74,12 +74,11 @@ class GroupForm(ModelForm, CssClassMixin):
exclude = ('permissions',) exclude = ('permissions',)
class UsersettingsForm(UserEditForm, CssClassMixin): class UsersettingsForm(ModelForm, CssClassMixin):
class Meta: class Meta:
model = User model = User
fields = ('username', 'first_name', 'last_name', 'email') fields = ('username', 'first_name', 'last_name', 'email')
class UserImportForm(Form, CssClassMixin): class UserImportForm(Form, CssClassMixin):
csvfile = FileField(widget=FileInput(attrs={'size':'50'}), label=_("CSV File")) csvfile = FileField(widget=FileInput(attrs={'size':'50'}), label=_("CSV File"))
application_handling = ChoiceField(required=True, choices=USER_APPLICATION_IMPORT_OPTIONS, label=_("For existing applications")) application_handling = ChoiceField(required=True, choices=USER_APPLICATION_IMPORT_OPTIONS, label=_("For existing applications"))