摘要: 直接写代码吧CHECKBOX_CHOICES = ( ('Value1','Value1'), ('Value2','Value2'),)class EditProfileForm(ModelForm): interest = forms.MultipleChoiceField(required=False, widget=CheckboxSelectMultiple(), choices=CHECKBOX_CHO... 阅读全文
posted @ 2013-07-05 15:29 Django中国 阅读(10377) 评论(0) 推荐(0) 编辑