📜  添加到 manytomany key django stackoverflow - Python 代码示例
📅  最后修改于: 2022-03-11 14:45:16.805000             🧑  作者: Mango
代码示例1
my_obj.categories.add(fragmentCategory.objects.get(id=1))
# OR
my_obj.categories.create(name='val1')