Answers for "select default option django form"

0

select default option django form

class MyForm(forms.ModelForm):
    field_name = forms.ModelChoiceField(queryset=Position.objects.all(),
        empty_label="(Select here)")
Posted by: Guest on May-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language