[UPDT] NOTIFICATIONS: Updated notification save method by assigning values verbs

This commit is contained in:
Horilla
2024-03-26 14:19:06 +05:30
parent 4dbb92c342
commit edd1593c43

View File

@@ -321,7 +321,10 @@ def notify_handler(verb, **kwargs):
if kwargs and EXTRA_DATA:
newnotify.data = kwargs
newnotify.verb_ar = newnotify.data.get("verb_ar", None)
newnotify.verb_de = newnotify.data.get("verb_de", None)
newnotify.verb_es = newnotify.data.get("verb_es", None)
newnotify.verb_fr = newnotify.data.get("verb_fr", None)
newnotify.save()
new_notifications.append(newnotify)