Better ArrayField admin widget?

前端 未结 4 1922
抹茶落季
抹茶落季 2020-12-30 22:42

Is there any way to make ArrayField\'s admin widget allow adding and deleting objects? It seems that by default, it is instead displayed just a text field, and uses comma se

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-30 23:09

    For OP, or anyone out there looking, between these helpful bits you should be good to go:

    • 1. Extending SelectMultiple or CheckboxSelectMultiple widget to parse arrayfield and
    • 2. Creating or extending admin form to display the arrayfield using the widget above

提交回复
热议问题