Skip to content

Add customizable ordering and new request type for timeslot queryset

Richard Blechinger requested to merge ordering-timeslots into master

Hello!

In this MR I added a way to customize the ordering of the TimeSlot queryset with a new order GET parameter. It defaults to sorting by reverse start date. (aka -start).

I also added a new query parameter surrounding which returns the 10 timeslots closest to the current date.

Since it's been a while since I've written Python, I'm not sure if this is the most safe/optimal way to do it, but I hope I did alright :D

If I should change anything, please let me know!

Edited by Richard Blechinger

Merge request reports