Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
a6edfcc0
Commit
a6edfcc0
authored
Dec 14, 2015
by
Skia
Browse files
Update UserPropForm
parent
376b5101
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/views/forms.py
View file @
a6edfcc0
...
...
@@ -27,7 +27,16 @@ class UserPropForm(forms.ModelForm):
required_css_class
=
'required'
class
Meta
:
model
=
User
fields
=
[
'edit_group'
,
'view_group'
,
'groups'
,
'user_permissions'
,]
fields
=
[
'groups'
,
'edit_group'
,
'view_group'
]
labels
=
{
'edit_group'
:
"Edit profile group"
,
'view_group'
:
"View profile group"
,
}
help_texts
=
{
'edit_group'
:
"Groups that can edit this user's profile"
,
'view_group'
:
"Groups that can view this user's profile"
,
'groups'
:
"Which groups this user belongs to"
,
}
widgets
=
{
'groups'
:
CheckboxSelectMultiple
,
'user_permissions'
:
CheckboxSelectMultiple
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment