id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 24267,Simplify Query.build_filter(),Anssi Kääriäinen,Simon Charette,"Now that the old way of building lookups isn't supported any more, we could restructure build_filter(). Steps included: - Remove related field's get_lookup_constraint(), instead write proper lookups for relational fields, too. - Do not use lookup_name in build_filter(), instead use Lookup flags where needed. - Ultimate goal could be usage of resolve_ref() in build_filter() instead of direct use of setup_joins(). In this case build_filter() would be simplified a lot. It is uncertain if this goal is achievable.",Cleanup/optimization,assigned,"Database layer (models, ORM)",dev,Normal,,,,Accepted,0,0,0,0,0,0