1
choice = models.BooleanField()
在形式中我使用
choices = (
('1', 'Buy'),
('0', 'Sell'),
)
choice = forms.TypedChoiceField(label=u'Тип предожения', choices=choices, widget=forms.RadioSelect,)
但是當我編輯項目時,未選擇值...如何進行上一個選定值標記爲
非常感謝! –