Skip to content

Commit 8785e1c

Browse files
committed
Order selected proposals on created_at timestamp
Order proposals sections and proposal types on modified_at timestamp Fixes #675, #678
1 parent 57601d7 commit 8785e1c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

junction/proposals/views.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def list_proposals(request, conference_slug):
103103
# make sure it's after the tag filtering is applied
104104
selected_proposals_list = proposals_qs.filter(
105105
review_status=ProposalReviewStatus.SELECTED
106-
)
106+
).order_by("created_at")
107107

108108
selected_proposals = collections.defaultdict(list)
109109
for proposal in selected_proposals_list:
@@ -123,8 +123,10 @@ def list_proposals(request, conference_slug):
123123
{
124124
"public_proposals_list": public_proposals_list,
125125
"selected_proposals": dict(selected_proposals),
126-
"proposal_sections": conference.proposal_sections.all(),
127-
"proposal_types": conference.proposal_types.all(),
126+
"proposal_sections": conference.proposal_sections.all().order_by(
127+
"modified_at"
128+
),
129+
"proposal_types": conference.proposal_types.all().order_by("modified_at"),
128130
"is_filtered": is_filtered,
129131
"filter_name": filter_name,
130132
"is_reviewer": permissions.is_proposal_reviewer(

0 commit comments

Comments
 (0)