Skip to content

Instantly share code, notes, and snippets.

@dingosaurus
Last active November 29, 2016 08:03
Show Gist options
  • Save dingosaurus/66d648c34a1083aee814c1fd13382c12 to your computer and use it in GitHub Desktop.
Save dingosaurus/66d648c34a1083aee814c1fd13382c12 to your computer and use it in GitHub Desktop.
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