I
I
IVBAN2018-09-18 11:41:35
Django
IVBAN, 2018-09-18 11:41:35

How to change the ManyToMany field of a model object in Django?

Let's say I have a dictionary with object ids that I need to insert into the manytomany field. As I understand it, this is stored in this field. That is, remove the old ones and replace them with new ones. How can I do it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question