Is there a Django ModelField that allows for multiple choices, aside from ManyToMany?

前端 未结 3 2125
后悔当初
后悔当初 2021-02-07 21:36

I\'d like the user to be able to make multiple selections via the admin interface, and store the result as a list of comma-separated values. A select-multiple or a list of check

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-07 21:50

    Django-multiselectfield does what you require:

    https://github.com/goinnn/django-multiselectfield

    It's inspired by the snippet that Alexander mentioned.

提交回复
热议问题