mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
[3.1.x] Removed unused import in docs/ref/models/expressions.txt.
Backport of fdc3d9dcaf
from master
This commit is contained in:
parent
1dd159f16e
commit
fdbcbc3081
1 changed files with 1 additions and 1 deletions
|
@ -876,7 +876,7 @@ values of an expression in the partition. If the ``released`` field of the
|
|||
example annotates each movie with the average rating of a movie's peers
|
||||
released between twelve months before and twelve months after the each movie.
|
||||
|
||||
>>> from django.db.models import Avg, ExpressionList, F, ValueRange, Window
|
||||
>>> from django.db.models import Avg, F, ValueRange, Window
|
||||
>>> Movie.objects.annotate(
|
||||
>>> avg_rating=Window(
|
||||
>>> expression=Avg('rating'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue