django-cursor-pagination icon indicating copy to clipboard operation
django-cursor-pagination copied to clipboard

Using OrderBy objects does not work

Open Drarok opened this issue 6 years ago • 0 comments

Since the direction of the sorts are checked assuming they are strings (source), attempting to use an OrderBy object will cause a crash.

The use of an OrderBy object is required in order to change how null values are sorted (source)

qs.order_by(F('field_name').desc(nulls_last=True))

Drarok avatar Jul 13 '18 14:07 Drarok