coady / django-model-values

Taking the O out of ORM.

Home Page:https://coady.github.io/django-model-values

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to make this library work with IN clause?

simkimsia opened this issue · comments

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?

Never mind I saw the replies in #3

I will simply use Book.objects.filter(status__in=["published", "revised"]) as per normal