django form select default choice code example
Example: select default option django form
class MyForm(forms.ModelForm):
field_name = forms.ModelChoiceField(queryset=Position.objects.all(),
empty_label="(Select here)")
class MyForm(forms.ModelForm):
field_name = forms.ModelChoiceField(queryset=Position.objects.all(),
empty_label="(Select here)")