add to manytomany key django stackoverflow

Solutions on MaxInterview for add to manytomany key django stackoverflow by the best coders in the world

showing results for - "add to manytomany key django stackoverflow"
Benjamin
13 Mar 2020
1my_obj.categories.add(fragmentCategory.objects.get(id=1))
2
3# OR
4
5my_obj.categories.create(name='val1')
6
similar questions
queries leading to this page
add to manytomany key django stackoverflow