mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
Update UserPropForm
This commit is contained in:
parent
376b5101c1
commit
a6edfcc048
@ -27,7 +27,16 @@ class UserPropForm(forms.ModelForm):
|
|||||||
required_css_class = 'required'
|
required_css_class = 'required'
|
||||||
class Meta:
|
class Meta:
|
||||||
model = User
|
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 = {
|
widgets = {
|
||||||
'groups': CheckboxSelectMultiple,
|
'groups': CheckboxSelectMultiple,
|
||||||
'user_permissions': CheckboxSelectMultiple,
|
'user_permissions': CheckboxSelectMultiple,
|
||||||
|
Loading…
Reference in New Issue
Block a user