Skip to content

Commit

Permalink
Merged in [16593] from rjsparks@nostrum.com:
Browse files Browse the repository at this point in the history
    Sort the documents in the agenda, minutes, bluesheets section of the session_details view. Fixes #2759.
 - Legacy-Id: 16611
Note: SVN reference [16593] has been migrated to Git commit f2dd064
  • Loading branch information
levkowetz committed Aug 3, 2019
1 parent 1a35504 commit c27b285
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ietf/meeting/views.py
Expand Up @@ -1089,7 +1089,8 @@ def session_details(request, num, acronym ):
else:
session.time = session.status.name

session.filtered_artifacts = session.sessionpresentation_set.filter(document__type__slug__in=['agenda','minutes','bluesheets'])
session.filtered_artifacts = list(session.sessionpresentation_set.filter(document__type__slug__in=['agenda','minutes','bluesheets']))
session.filtered_artifacts.sort(key=lambda d:['agenda','minutes','bluesheets'].index(d.document.type.slug))
session.filtered_slides = session.sessionpresentation_set.filter(document__type__slug='slides').order_by('order')
session.filtered_drafts = session.sessionpresentation_set.filter(document__type__slug='draft')
# TODO FIXME Deleted materials shouldn't be in the sessionpresentation_set
Expand Down

0 comments on commit c27b285

Please sign in to comment.