From 1f501619405e6e2ec891e09f36b54a4242f12dd8 Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Thu, 27 Mar 2025 14:56:33 +0330 Subject: [PATCH] PushSubscription model verbose name --- backend/account/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/account/models.py b/backend/account/models.py index da7d7cf..559ef0d 100644 --- a/backend/account/models.py +++ b/backend/account/models.py @@ -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": 'فروشگاه هی ملز',