Add predicate functionality to Q objects
|Reported by:||ptone||Owned by:||ptone|
|Component:||Database layer (models, ORM)||Version:||master|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
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:
Current work-in-progress to bring this into Django is here:
Change History (3)
comment:1 Changed 4 years ago by ptone
- Has patch set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted