Opened 5 years ago

Last modified 5 years ago

#25444 new Cleanup/optimization

Restructure expressions documentation to better highlight ORM support

Reported by: Josh Smeaton Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


The docs in docs/ref/models/expressions.txt could probably do with an overhaul. The original document was very specific about highlighting the use-cases of F expressions in terms of filter and update.

I think the docs should be structured in terms of which queryset methods support expressions. We can then leave the specific expression reference below.

Some of the F() examples can be pulled out into the queryset method sections, but the F() section can still highlight the things it is particularly good at -- like avoiding race conditions.

The docs would be structured like:

Query Expressions


Supported QuerySet Operations

Not every :doc:`QuerySet </ref/models/queryset>` method has full support for
Query Expressions, but the support is growing with each release. Below is a
quick overview showing which methods do have support.

create() and update()



filter() and exclude()



Change History (1)

comment:1 Changed 5 years ago by Tim Graham

Component: UncategorizedDocumentation
Needs documentation: unset
Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization
Note: See TracTickets for help on using tickets.
Back to Top