Modified a test in upcoming_ical() to not break if a group does not have a parent.
- Legacy-Id: 12153
This commit is contained in:
parent
1a92efb77e
commit
80e52ef0a1
|
@ -1934,9 +1934,11 @@ def upcoming_ical(request):
|
|||
# apply filters
|
||||
if filters:
|
||||
assignments = [a for a in assignments if
|
||||
a.session.group.acronym in filters or
|
||||
a.session.group.parent.acronym in filters]
|
||||
|
||||
a.session.group and (
|
||||
a.session.group.acronym in filters or (
|
||||
a.session.group.parent and a.session.group.parent.acronym in filters
|
||||
)
|
||||
) ]
|
||||
# gather vtimezones
|
||||
vtimezones = set()
|
||||
for meeting in meetings:
|
||||
|
|
Loading…
Reference in a new issue