[Answer]-Dynamically placing a value in django query

1👍

Use a dictionary to set the keys and then expand it into kwargs with **, i.e.:

Q(**{test[0]: True})

Leave a comment