Django custom widget for ManyToMany field

Does anyone know a widget that displays 2 select boxes. One shows a list of all the objects in the model, and the other shows the objects that have been selected. Then the user can select an object from the first list, press the → button, which moves it to the "selected" list. Then, when the form is saved, the objects in the selected list are saved in the manytomany field.

thanks

+4
source share
1 answer

django.contrib.admin.widgets.FilteredSelectMultiple

+7
source

Source: https://habr.com/ru/post/1312332/


All Articles