Add customizable ordering and new request type for timeslot queryset
Merged
Add customizable ordering and new request type for timeslot queryset
ordering-timeslots
into
master
All threads resolved!
All threads resolved!
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
Activity
changed milestone to %Aura 0.9
mentioned in issue dashboard#80 (closed)
- Resolved by Richard Blechinger
- Resolved by Richard Blechinger
- Resolved by Ernesto Rico Schmidt
It looks good to me.
Please test with wrong
?order
parameters and maybe validate before using them in the query.
added 1 commit
- 758bb25a - Strip - character to make sure field can be validated properly
mentioned in commit c0aabb28
Please register or sign in to reply