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

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): ...@@ -86,7 +86,7 @@ class ExchangeFeedbackViewSet(EssentialModuleViewSet):
ExchangeFeedback.objects.filter( ExchangeFeedback.objects.filter(
exchange__unlinked=False exchange__unlinked=False
) # only display linked instances ) # 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") .select_related("exchange", "updated_by", "moderated_by", "exchange__student")
.prefetch_related( .prefetch_related(
"exchange__exchange_courses", "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