PushSubscription model verbose name

This commit is contained in:
Parsa Nazer
2025-03-27 14:56:33 +03:30
parent c6d615ced8
commit 1f50161940
+4
View File
@@ -152,6 +152,10 @@ class PushSubscription(models.Model):
def __str__(self):
return f'{self.user} push'
class Meta:
verbose_name = 'اشتراک نوتیفیکیشن'
verbose_name_plural = 'اشتراک های نوتیفیکیشن'
def send_notif(self, title, body, icon):
payload = {
"title": 'فروشگاه هی ملز',