[Answer]-Adjusting default value in select when using modelform

1đź‘Ť

If you want to use a value from the field’s choices, you shouldn’t be using “empty_label” – apart from anything else, that really is for an empty value, so the value sent to the server when it is selected will just be “”.

Instead, you should provide the initial parameter, either when defining the field, or when you instantiate the form.

Leave a comment