0
中读取TypedChoiceField数据
我有一个FormView
需要ModelForm
。该型号有SmallIntegerField
。从表格
在我的FormView
中,我正尝试使用Forms API读取数据。 但是,这是行不通的
status = int(form.fields['status'])
我得到的,
int() argument must be a string, a bytes-like object or a number, not 'TypedChoiceField'