Commit 8539b79f authored by Florent Chehab's avatar Florent Chehab

fix(previous exchange pagnination): order by ID also for deterministic pagination

parent 53172e0d
Pipeline #53302 canceled with stages
in 5 minutes and 12 seconds
......@@ -86,7 +86,7 @@ class ExchangeFeedbackViewSet(EssentialModuleViewSet):
ExchangeFeedback.objects.filter(
exchange__unlinked=False
) # only display linked instances
.order_by("-exchange__year", "exchange__semester")
.order_by("-exchange__year", "exchange__semester", "exchange_id")
.select_related("exchange", "updated_by", "moderated_by", "exchange__student")
.prefetch_related(
"exchange__exchange_courses",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment