|
| 1 | +diff --git a/coldfront/core/allocation/signals.py b/coldfront/core/allocation/signals.py |
| 2 | +index 1c078f0..51277b1 100644 |
| 3 | +--- a/coldfront/core/allocation/signals.py |
| 4 | ++++ b/coldfront/core/allocation/signals.py |
| 5 | +@@ -14,3 +14,6 @@ allocation_remove_user = django.dispatch.Signal() |
| 6 | + |
| 7 | + allocation_change_approved = django.dispatch.Signal() |
| 8 | + #providing_args=["allocation_pk", "allocation_change_pk"] |
| 9 | ++ |
| 10 | ++allocation_change_created = django.dispatch.Signal() |
| 11 | ++ #providing_args=["allocation_pk", "allocation_change_pk"] |
| 12 | +diff --git a/coldfront/core/allocation/views.py b/coldfront/core/allocation/views.py |
| 13 | +index ec129fc..fa9b39c 100644 |
| 14 | +--- a/coldfront/core/allocation/views.py |
| 15 | ++++ b/coldfront/core/allocation/views.py |
| 16 | +@@ -53,6 +53,7 @@ from coldfront.core.allocation.signals import (allocation_new, |
| 17 | + allocation_activate_user, |
| 18 | + allocation_disable, |
| 19 | + allocation_remove_user, |
| 20 | ++ allocation_change_created, |
| 21 | + allocation_change_approved,) |
| 22 | + from coldfront.core.allocation.utils import (generate_guauge_data_from_usage, |
| 23 | + get_user_resources) |
| 24 | +@@ -1811,6 +1812,12 @@ class AllocationChangeView(LoginRequiredMixin, UserPassesTestMixin, FormView): |
| 25 | + |
| 26 | + messages.success(request, 'Allocation change request successfully submitted.') |
| 27 | + |
| 28 | ++ allocation_change_created.send( |
| 29 | ++ sender=self.__class__, |
| 30 | ++ allocation_pk=allocation_obj.pk, |
| 31 | ++ allocation_change_pk=allocation_change_request_obj.pk,) |
| 32 | ++ |
| 33 | ++ |
| 34 | + send_allocation_admin_email(allocation_obj, |
| 35 | + 'New Allocation Change Request', |
| 36 | + 'email/new_allocation_change_request.txt', |
0 commit comments