From a6edfcc048d5d60d2e78ee23b5a980c8b4b1083e Mon Sep 17 00:00:00 2001 From: Skia Date: Mon, 14 Dec 2015 10:49:15 +0100 Subject: [PATCH] Update UserPropForm --- core/views/forms.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/core/views/forms.py b/core/views/forms.py index aa6733b4..a910f4db 100644 --- a/core/views/forms.py +++ b/core/views/forms.py @@ -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,