groups for in alert_group all groups appen users for in groups for in

1
2
3
4
5
6
7
groups = []
for k in i.alert_group.all():
groups.appen(k)
users = []
for v in groups:
for z in v.user.all()
users.append(z.email)