Merge pull request #1571 from chainsol/fix_#1570
Change if statement in comms/models.py to fix #1570
This commit is contained in:
commit
7531e03064
2 changed files with 10 additions and 4 deletions
|
|
@ -584,9 +584,7 @@ class SubscriptionHandler(object):
|
|||
for obj in self.all():
|
||||
from django.core.exceptions import ObjectDoesNotExist
|
||||
try:
|
||||
if hasattr(obj, 'account'):
|
||||
if not obj.account:
|
||||
continue
|
||||
if hasattr(obj, 'account') and obj.account:
|
||||
obj = obj.account
|
||||
if not obj.is_connected:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue