|
@@ -1,7 +1,7 @@
|
|
|
from django.urls import reverse
|
|
|
from django.conf import settings
|
|
|
|
|
|
-from djadhere.utils import send_notification
|
|
|
+from djadhere.utils import send_notification, send_web_notification
|
|
|
|
|
|
|
|
|
# À simplifier : seul la route peut changer maintenant
|
|
@@ -45,3 +45,4 @@ def notify_allocation(request, new_alloc, old_alloc=None):
|
|
|
if sujet:
|
|
|
sujet += ' {} sur {}'.format(new_alloc.resource, new_alloc.route)
|
|
|
send_notification(sujet, message, settings.ALLOCATIONS_EMAILS, cc=[benevole])
|
|
|
+ send_web_notification(sujet, message)
|