Django: ModelChoiceField remove default --------- choice
How do i remove the defa开发者_运维百科ult --------- choice from ModelChoiceField?
Use empty_label=None
field2 = forms.ModelChoiceField(queryset=..., empty_label=None)
Please check the doc for ModelChoiceField
精彩评论