1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +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

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