Commit 0d842fe3 authored by guanghongwei's avatar guanghongwei

修改bug

parent 73d61e09
...@@ -24,7 +24,7 @@ class UserAddForm(forms.Form): ...@@ -24,7 +24,7 @@ class UserAddForm(forms.Form):
name = forms.CharField(max_length=30, name = forms.CharField(max_length=30,
widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': '姓名'})) widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': '姓名'}))
group = forms.ModelMultipleChoiceField(queryset=Group.objects.all(), 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_admin = forms.BooleanField()
is_superuser = forms.BooleanField() is_superuser = forms.BooleanField()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment