From fed0e17ac1f666d4f549d0c1cba155572edf5680 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 23 Feb 2015 12:21:00 +0000 Subject: [PATCH] Made the selector for Agenda.groups() match that of Agenda.area_list() by adding parent__isnull=False. Without this, the two won't match if split by area. Fixes issue #1607. - Legacy-Id: 9108 --- ietf/meeting/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ietf/meeting/models.py b/ietf/meeting/models.py index bbd7a35c2..13e54e2d3 100644 --- a/ietf/meeting/models.py +++ b/ietf/meeting/models.py @@ -626,7 +626,8 @@ class Schedule(models.Model): .distinct() ) def groups(self): - return Group.objects.filter(type__slug__in=['wg', 'rg', 'ag', 'iab'], session__scheduledsession__schedule=self).distinct().order_by('parent__acronym', 'acronym') + return Group.objects.filter(type__slug__in=['wg', 'rg', 'ag', 'iab'], parent__isnull=False, + session__scheduledsession__schedule=self).distinct().order_by('parent__acronym', 'acronym') # calculate badness of entire schedule def calc_badness(self):