F
F
Friend2017-01-09 09:54:29
Django
Friend, 2017-01-09 09:54:29

How to specify a list of parameters to search in models?

I do a search for MyModel.objects.filter(otherlistid=1) it looks for me 1 here, is it possible to specify a list of int numbers 1, 2, 3, 4, 5 to search at once?
If there is another search option, I will be glad to know
Thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question