[Answer]-Excluding non-value from Django rendered drop-down

1👍

I think you are looking for empty_label

# A custom empty label
field1 = forms.ModelChoiceField(queryset=..., empty_label="(Nothing)")

# No empty label
field2 = forms.ModelChoiceField(queryset=..., empty_label=None)

This will help you more.

👤Ahsan

Leave a comment