Editing the emtpy_value attribute for a select widget with django-crispy-forms -


i'm trying figure out how set empty value of 'select' element "choose location" instead of "--------" in django using django-crispy-forms. have suggestions on best way this?

thanks

turns out since using choices in charfield, add default blank value label , set blank=false on model. answer documented here, it's hidden in question, foreignkeys.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -