PushSubscription model verbose name
This commit is contained in:
@@ -152,6 +152,10 @@ class PushSubscription(models.Model):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f'{self.user} push'
|
return f'{self.user} push'
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
verbose_name = 'اشتراک نوتیفیکیشن'
|
||||||
|
verbose_name_plural = 'اشتراک های نوتیفیکیشن'
|
||||||
|
|
||||||
def send_notif(self, title, body, icon):
|
def send_notif(self, title, body, icon):
|
||||||
payload = {
|
payload = {
|
||||||
"title": 'فروشگاه هی ملز',
|
"title": 'فروشگاه هی ملز',
|
||||||
|
|||||||
Reference in New Issue
Block a user