I'm new with Python and Django. I'd like to use combo box with ModelChoiceField like below.
school = forms.ModelChoiceField(queryset=School.objects.all())
The school object have a 'id', 'Name', 'Domain' fields but when I render the form in the html it show like below.
<label for="id_school">School:</label>
<select id="id_school" name="school">
<option value="" selected="selected">---------</option>
<option value="3">School object</option>
</select>
I'd like to make the text from 'Name' field and make the first row to be selected. Also it would be great if you have any reference site some one like me!
Thanks!