Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7k
Support for nulls_first / nulls_last in CursorPagination#9456
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Django supportsasc(nulls_first=None, nulls_last=None) anddesc(nulls_first=None, nulls_last=None), but DRF does not.
My suggestion is to add a configurable class variable that let's us configure whether nulls will be sorted first or last. Alternatively it would be helpful if ordering was extracted to a function that could be overridden. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments
-
I was also looking to discuss the same feature. If this feature is added, it will be a great help. |
BetaWas this translation helpful?Give feedback.
All reactions
-
This could be achieved by using However it would be very nice if the |
BetaWas this translation helpful?Give feedback.