简体   繁体   中英

Connecting django multiple choice field with textinputs

In django models, I used models.MultipleChoiceField but i want that those variables in the set of choices to be linked to a textinput which will be saved into the django admin. So the user selects the choice then keys in a textbox and saves for that choice is that possible to implement?

I think you can follow this link

If you want to "those variables in the set of choices to be linked to a textinput", it will be use forms.ChoiceField in forms.Form .

it will be nicely if you posting your code, the better we may know what you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM