manytomany django add bulk create
First, you can create the objects you want to add to the many-to-many relationship using the bulk_create method. This method accepts a list of objects to create.
Next, fetch the objects that you want to relate to the many-to-many relationship.
Then, for each object, use the add method on the many-to-many field and pass in the objects you want to add to the relationship.