0

In django admin the Groups element of the Change User form gives you two lists with arrows to move from one list to the other. Something like the attached. enter image description here

I have a many to many field where I would like Django Admin to use this form but I cannot find out how to use it. Can anyone help?

Thanks

HenryM
  • 5,557
  • 7
  • 49
  • 105
  • I thought it was used by default for all M2M relations in the admin. Perhaps https://stackoverflow.com/questions/1698435/django-multi-select-widget can help? – dukebody Jan 21 '18 at 12:39

1 Answers1

0

You need the filter_horizontal option in your ModelAdmin class.

Daniel Roseman
  • 588,541
  • 66
  • 880
  • 895