diff options
| author | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-01-30 15:20:12 -0500 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-01-30 15:59:14 -0500 |
| commit | cbc4c9f11f32fa99ecfe2dc365b6309ee4fc9277 (patch) | |
| tree | 0227f4b06bb055ca951a33224cfcd3454842d412 /docs/ref | |
| parent | 08a0b923298fd2489871cd88254d11f8246b8c93 (diff) | |
Fixed typos in docs/ref/models/querysets.txt.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/models/querysets.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 042b435b90..890395f6de 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -330,9 +330,9 @@ interested in the exact number of entries, you could do this: >>> blogs = Blog.objects.alias(entries=Count("entry")).filter(entries__gt=5) ``alias()`` can be used in conjunction with :meth:`annotate`, :meth:`exclude`, -:meth:`filter`, :meth:`order_by`, and :meth:`update`. To use aliased expression -with other methods (e.g. :meth:`aggregate`), you must promote it to an -annotation:: +:meth:`filter`, :meth:`order_by`, and :meth:`update`. To use an aliased +expression with other methods (e.g. :meth:`aggregate`), you must promote it to +an annotation:: Blog.objects.alias(entries=Count("entry")).annotate( entries=F("entries"), @@ -341,9 +341,9 @@ annotation:: :meth:`filter` and :meth:`order_by` can take expressions directly, but expression construction and usage often does not happen in the same place (for example, ``QuerySet`` method creates expressions, for later use in views). -``alias()`` allows building complex expressions incrementally, possibly -spanning multiple methods and modules, refer to the expression parts by their -aliases and only use :meth:`annotate` for the final result. +``alias()`` allows building complex expressions incrementally (possibly +spanning multiple methods and modules), referring to the expression parts by +their aliases, and only using :meth:`annotate` for the final result. ``order_by()`` ~~~~~~~~~~~~~~ |
