Skip to content

Commit 89294a5

Browse files
committed
Order materials on the agenda session materials popup according to the sessionpresentation order. Fixes issue ietf-tools#2049
- Legacy-Id: 12380
1 parent 216ed80 commit 89294a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/meeting/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def preprocess_assignments_for_agenda(assignments_queryset, meeting):
164164
"session__group", "session__group__charter", "session__group__charter__group",
165165
).prefetch_related(
166166
Prefetch("session__materials",
167-
queryset=Document.objects.exclude(states__type=F("type"),states__slug='deleted').select_related("group").order_by("order"),
167+
queryset=Document.objects.exclude(states__type=F("type"),states__slug='deleted').select_related("group").order_by("sessionpresentation__order"),
168168
to_attr="prefetched_active_materials",
169169
),
170170
"timeslot__meeting",

0 commit comments

Comments
 (0)