1# Use `MyModel.my_many_to_many.through.objects`
2# "Tag.photos.through" => Model with 3 fields [ id, photo, tag ]
3photo_tag_1 = Tag.photos.through(photo_id=1, tag_id=1)
4photo_tag_2 = Tag.photos.through(photo_id=1, tag_id=2)
5Tag.photos.through.objects.bulk_insert([photo_tag_1, photo_tag_2, ...])
6