0
MYTable.objects.filter( where id = 42, 55, 65, and 55)

and it returns a query set ?

1
  • 1
    Maybe you should precise your question because as adamk answered you can use the '__in' filter but as you specify '55' twice I think you are looking for something else... Commented Jul 19, 2010 at 10:35

1 Answer 1

12
MYTable.objects.filter( id__in = [42,55,65,55] )
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.