Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
the_expressions = list()
for param in request.GET:
# priprava Q
the_expressions.append(Q(a=1, b=2, c=3))
objects = objects.filter(*the_expressions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment