#18931: Add predicate functionality to Q objects
----------------------------------------------+--------------------
Reporter: ptone | Owner: ptone
Type: New feature | Status: new
Component: Database layer (models, ORM) | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
A predicate is condition that can be matched against some item to
determine whether that item meets the condition.
Django has a relatively rich set of lookup terms that can be used in
filtering a queryset.
What is proposed is a new behavior of a Q object, that allows the
conditions described in the formation of a Q instance, to be tested agains
a model instance.
The initial implementation of this was released separately:
https://github.com/ptone/django-predicate
Current work-in-progress to bring this into Django is here:
https://github.com/ptone/django/compare/master...q-predicate
--
Ticket URL: <https://code.djangoproject.com/ticket/18931>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.