Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

select default option django form

class MyForm(forms.ModelForm):
    field_name = forms.ModelChoiceField(queryset=Position.objects.all(),
        empty_label="(Select here)")
 
PREVIOUS NEXT
Tagged: #select #default #option #django #form
ADD COMMENT
Topic
Name
2+1 =