db.models.Expression.reverse_ordering()

reverse_ordering()

Returns self with any modifications required to reverse the sort order within an order_by call. As an example, an expression implementing NULLS LAST would change its value to be NULLS FIRST. Modifications are only required for expressions that implement sort order like OrderBy. This method is called when reverse() is called on a queryset.

doc_Django
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.