When i have, say, a Datamodel named "Computer", and there are many Users for many Computers, I create a manytomany-relationship between "Computer" and "User". Now I want to select any Computer that is used by User 1. I tried this:
computers = Computer.objects.filter(users__contains=1)
But this does not seem to work since the __contains-operator acts as "like". What is the correct way?