We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfdd65b commit 847f964Copy full SHA for 847f964
push_notifications/models.py
@@ -56,7 +56,7 @@ def get_queryset(self):
56
57
class GCMDeviceQuerySet(models.query.QuerySet):
58
def send_message(self, message, **kwargs):
59
- if self:
+ if self.exists():
60
from .gcm import send_message as gcm_send_message
61
62
data = kwargs.pop("extra", {})
@@ -121,7 +121,7 @@ def get_queryset(self):
121
122
class APNSDeviceQuerySet(models.query.QuerySet):
123
def send_message(self, message, creds=None, **kwargs):
124
125
from .apns import apns_send_bulk_message
126
127
app_ids = self.filter(active=True).order_by("application_id")\
0 commit comments