Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rex Dri
Rex Dri
Commits
8539b79f
Commit
8539b79f
authored
Jan 11, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
backend/backend_app/models/exchangeFeedback.py
View file @
8539b79f
...
...
@@ -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"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment