#24267: Simplify Query.build_filter()
-------------------------------------+-------------------------------------
Reporter: akaariai | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Database | Version: master
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/24267>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.ccc9f8fef69ebe5f1d18b7a337ecf4c4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.