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 9fbab31 commit 820262eCopy full SHA for 820262e
push_notifications/models.py
@@ -58,9 +58,7 @@ def get_queryset(self):
58
class GCMDeviceQuerySet(models.query.QuerySet):
59
def send_message(self, message, **kwargs):
60
if self.exists():
61
- from firebase_admin import messaging
62
-
63
- from .gcm import dict_to_fcm_message
+ from .gcm import dict_to_fcm_message, messaging
64
from .gcm import send_message as fcm_send_message
65
66
if not isinstance(message, messaging.Message):
@@ -109,9 +107,7 @@ class Meta:
109
107
verbose_name = _("FCM device")
110
108
111
112
113
114
115
116
117
# GCM is not supported.
0 commit comments