The ORM expressions DEP (
https://github.com/django/deps/blob/master/drafts/orm_expressions.rst) is now ready for review.
In brief, the DEP proposes an improved and publicly documented way to write expressions for the ORM. The expressions can be used in .annotate() calls. The DEP also proposes that aggregates are a subclass of expressions.
The benefits are:
- Public API to write expressions
- Simplified implementation of how expressions are added to the query and how they are evaluated
- Aggregates behave similarly to other ORM expressions
A pull request by Josh Smeaton implements the DEP (
https://github.com/django/django/pull/2496).
My understanding is that we don't have yet any process for how to accept (or number...) DEPs. I propose that first the community reviews the DEP. Unless there is clear objection to the DEP, the technical board can then consider if (and how) they want to accept the DEP.
- Anssi