Querying datatables with column name as variable

You put the query operators into your dict as values, e.g.

params = {'name': q.ilike('%whatever%')}

That means still processing your dictionary on the server to convert string values to whatever query operators you want to use.

1 Like