From b1e0ba3d1b1cdbb8674caf0768e0f7b02001660a Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Tue, 4 Feb 2014 15:59:34 +0000 Subject: [PATCH] Adds the IAB-parented sessions to the set of things returned as "areas" Fixes bug #1288 Commit ready for merge - Legacy-Id: 7204 --- ietf/meeting/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/meeting/models.py b/ietf/meeting/models.py index 363d3ae32..7dac474ee 100644 --- a/ietf/meeting/models.py +++ b/ietf/meeting/models.py @@ -520,14 +520,14 @@ class Schedule(models.Model): return self.cached_sessions_that_can_meet def area_list(self): - return ( self.assignments.filter(session__group__type__slug__in=['wg', 'rg', 'ag'], + return ( self.assignments.filter(session__group__type__slug__in=['wg', 'rg', 'ag', 'iab'], session__group__parent__isnull=False) .order_by('session__group__parent__acronym') .values_list('session__group__parent__acronym', flat=True) .distinct() ) def groups(self): - return Group.objects.filter(type__slug__in=['wg', 'rg', 'ag'], session__scheduledsession__schedule=self).distinct().order_by('parent__acronym', 'acronym') + return Group.objects.filter(type__slug__in=['wg', 'rg', 'ag', 'iab'], session__scheduledsession__schedule=self).distinct().order_by('parent__acronym', 'acronym') class ScheduledSession(models.Model): """