django形式的非编辑选择域

时间:2015-08-18 14:20:34

标签: python django python-2.7 python-3.x django-forms

 STATUS = (
    (1, "one"),
    (2, "first"),
    (3, "third")
)

我想以表格1 /第一/第三

显示
status = forms.ChoiceField(label="Статус", choices=STATUS, widget=forms.TextInput(attrs={'readonly':'readonly'}))

但这行显示我1/2/3。 我怎样才能显示第二个值?

0 个答案:

没有答案