django model choice option as a multi select box
Django Multiple Choice Field / Checkbox Select Multiple
Django: How can i create a multiple select form?
I'm trying to add a multiselect field in existing django model. I went through these three SOF threads and some other blogs but I didn't find required solution. everyone is using modelForms.
I want this in purely in default django admin panel (same as choice field). this field is not going to be used in front-end/any kind of form. purely for admin purpose.
How can I achieve this.
I can create another model for this and then ManytoMany relation but I wonder if there exist some thing like
field = models.MultipleChoiceField(choices=[a list of choices])