How do i remove the default --------- choice from ModelChoiceField?
Use empty_label=None
field2 = forms.ModelChoiceField(queryset=..., empty_label=None)
Please check the doc for ModelChoiceField
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With