From 0d842fe3ecb751c1b28ac4cfa64619c783ee008e Mon Sep 17 00:00:00 2001 From: guanghongwei Date: Tue, 16 Sep 2014 16:18:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=87=EE=86=BD=E6=95=BCbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webroot/AutoSa/UserManage/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/AutoSa/UserManage/forms.py b/webroot/AutoSa/UserManage/forms.py index 3a48c2508..8f038f182 100644 --- a/webroot/AutoSa/UserManage/forms.py +++ b/webroot/AutoSa/UserManage/forms.py @@ -24,7 +24,7 @@ class UserAddForm(forms.Form): name = forms.CharField(max_length=30, widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': '姓名'})) group = forms.ModelMultipleChoiceField(queryset=Group.objects.all(), - widget=forms.MultipleChoiceField(attrs={'class': 'form-control'})) + widget=forms.SelectMultiple(attrs={'class': 'form-control'})) is_admin = forms.BooleanField() is_superuser = forms.BooleanField()