How to make this library work with IN clause?
simkimsia opened this issue · comments
KimSia Sim commented
in english
I want to find books whose status is any of the following: "published", "revised"
python
I tried the following and I get SyntaxError: invalid syntax
Book.objects[status__in=["published", "revised"]]
Can help?
KimSia Sim commented
Never mind I saw the replies in #3
I will simply use Book.objects.filter(status__in=["published", "revised"]) as per normal