Как добавить элемент select в таблицу (добавить объект в m2m-отношение)

I have two manytomany related models Projects and Users. I would like that when selecting a user from the list, it would be added to the table, that is (user.member.add(project)). Would UpdateView help me? How?

[введите описание изображения здесь](https://i.stack.imgur.com/Be5w2.png)

I thought about doing it by editing the psot method of UpdateView to add the relationship but I don't need data to be loaded in any form, I just want it to be inserted into the table and transparent to the user
Вернуться на верх