Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
AE
Sith
Commits
a6edfcc0
Commit
a6edfcc0
authored
Dec 14, 2015
by
Skia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update UserPropForm
parent
376b5101
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
core/views/forms.py
core/views/forms.py
+10
-1
No files found.
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
Markdown
is supported
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