Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make this library work with IN clause? #6

Closed
simkimsia opened this issue May 17, 2020 · 1 comment
Closed

How to make this library work with IN clause? #6

simkimsia opened this issue May 17, 2020 · 1 comment

Comments

@simkimsia
Copy link

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?

@simkimsia
Copy link
Author

simkimsia commented May 17, 2020

Never mind I saw the replies in #3

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant