3 ms·
The mechanism for doing this is a total hack on Django's ORM. We build a bigass list of all possible JOINs and concat them together: some_model__another__t
by bryanh 14y ago
The mechanism for doing this is a total hack on Django's ORM. We build a bigass list of all possible JOINs and concat them together:
some_model__another__title
some_model__another__date
some_model__another__description
You select which fields and values to use, and then we can just dump them into a queysets' filter or exclude method using python's lovely kwarg expansion.