Why do you wish to modify django-notification? There is a model called NoticeSetting
which indicates whether a message needs to be sent to a user (see here). This model is used by the function should_send
at line 315. That means you can implement the desired functionality without customizing django-notification.
Notification without email
-
12-12-2021 - |
Question
I am implementing a website using django and I want to allow users to decide if they want to receive emails or not. Is it possible to customize django-notification such that it doesn't send emails to some users? I can change the original app but I prefer to preserve it as is.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow