Files
ihrm/notifications/models.py

17 lines
672 B
Python
Raw Normal View History

2023-08-01 16:47:47 +05:30
from django.db import models
from swapper import swappable_setting
2023-08-01 16:47:47 +05:30
from .base.models import AbstractNotification, notify_handler # noqa
class Notification(AbstractNotification):
verb_en = models.CharField(max_length=255, default="", null=True)
verb_ar = models.CharField(max_length=255, default="", null=True)
verb_de = models.CharField(max_length=255, default="", null=True)
verb_es = models.CharField(max_length=255, default="", null=True)
verb_fr = models.CharField(max_length=255, default="", null=True)
2023-08-01 16:47:47 +05:30
class Meta(AbstractNotification.Meta):
abstract = False
swappable = swappable_setting("notifications", "Notification")