4 ms·
It's weird to single out Q objects since they're the most functional, composable, flexible parts of that API. Passing around clauses lets you do things like bui
by mattdeboard 14y ago
It's weird to single out Q objects since they're the most functional, composable, flexible parts of that API. Passing around clauses lets you do things like build a list of them then reduce that list into a single query via |. There's a lot of mental gymnastics involved in learning Django's ORM but the Q object is not something I would ever suggest as a candidate for dismissal.