|
@@ -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
|
|
|
|
|
|
|
|
|
def notify_allocation(request, new_alloc, old_alloc=None):
|
|
@@ -41,3 +41,4 @@ def notify_allocation(request, new_alloc, old_alloc=None):
|
|
|
if sujet:
|
|
|
sujet += ' ADT%d' % new_alloc.service.adhesion.pk
|
|
|
send_notification(sujet, message, settings.ALLOCATIONS_EMAILS, cc=[benevole])
|
|
|
+ send_web_notification(sujet, message)
|