[Fixed]-In a Django ModelForm, I want to display a CharField as a Select Field with defined choices

1👍

The choices options takes an iterable. A list or tuple of 2-tuples, which would be of the format:

(value, value to display)

So, you need to iterate over your values and create this format.

Leave a comment