Fixed a crash when requesting sessions for groups that do not have ADs. Applied to production as 2014-05-13-sreq-rg.patch . Commit ready for merge.
- Legacy-Id: 7740
This commit is contained in:
parent
6f202065e7
commit
c64243ba31
|
@ -326,9 +326,10 @@ def add_essential_people(group,initial):
|
|||
e = role.person.email_set.order_by("-active","-time").first()
|
||||
if e:
|
||||
people.add(e)
|
||||
e = group.ad.email_set.order_by("-active","-time").first()
|
||||
if e:
|
||||
people.add(e)
|
||||
if group.ad:
|
||||
e = group.ad.email_set.order_by("-active","-time").first()
|
||||
if e:
|
||||
people.add(e)
|
||||
initial['bethere'] = list(people)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue