text select2 django选择有效的选项选项错误

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text select2 django选择有效的选项选项错误相关的知识,希望对你有一定的参考价值。

if you are using Django Select2 and your form is givingyou an invalid choice error when you try to save, please chekc that
you are using the apropiate select2 control.

Exemple, if you have a ForeignKey field, use the autocomplete.ModelSelect2 control.
If you are using a ManyToMany relationship please use the autocomplete.ModelSelect2Multiple control

以上是关于text select2 django选择有效的选项选项错误的主要内容,如果未能解决你的问题,请参考以下文章