users = models.ManyToManyField(User)
I want to save both user1 and user2 in that model:
user1 = User.objects.get(pk=1)
user2 = User.objects.get(pk=2)
sample_object = Sample(users=user1, users=user2)
I know that’s wrong, but I’m sure you get what I want to do. How would you do it ?