1
0
mirror of https://github.com/django/django.git synced 2025-03-14 03:10:45 +00:00

[5.1.x] Corrected ArrayAgg example for ordering usage.

This commit is contained in:
nessita 2025-01-30 14:50:47 -03:00 committed by GitHub
parent 4f0169e94f
commit 173edebf7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,8 +51,8 @@ General-purpose aggregation functions
from django.db.models import F
ArrayAgg("a_field", order_by="-some_field")
ArrayAgg("a_field", order_by=F("some_field").desc())
ArrayAgg("a_field", ordering="-some_field")
ArrayAgg("a_field", ordering=F("some_field").desc())
.. versionchanged:: 5.0