Closed TonyRippy closed 2 years ago
From the docs for add(): https://docs.djangoproject.com/en/4.0/ref/models/relations/#django.db.models.fields.related.RelatedManager.add
add()
For many-to-many relationships add() accepts either model instances or field values, normally primary keys, as the *objs argument.
Likewise for remove(): https://docs.djangoproject.com/en/4.0/ref/models/relations/#django.db.models.fields.related.RelatedManager.remove
remove()
For many-to-many relationships remove() accepts either model instances or field values, normally primary keys, as the *objs argument.
From the docs for
add()
: https://docs.djangoproject.com/en/4.0/ref/models/relations/#django.db.models.fields.related.RelatedManager.addLikewise for
remove()
: https://docs.djangoproject.com/en/4.0/ref/models/relations/#django.db.models.fields.related.RelatedManager.remove