Skip to content

Commit fed0e17

Browse files
committed
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 ietf-tools#1607.
- Legacy-Id: 9108
1 parent 298adf3 commit fed0e17

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/meeting/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,8 @@ def area_list(self):
626626
.distinct() )
627627

628628
def groups(self):
629-
return Group.objects.filter(type__slug__in=['wg', 'rg', 'ag', 'iab'], session__scheduledsession__schedule=self).distinct().order_by('parent__acronym', 'acronym')
629+
return Group.objects.filter(type__slug__in=['wg', 'rg', 'ag', 'iab'], parent__isnull=False,
630+
session__scheduledsession__schedule=self).distinct().order_by('parent__acronym', 'acronym')
630631

631632
# calculate badness of entire schedule
632633
def calc_badness(self):

0 commit comments

Comments
 (0)