From 1f9ceed0e1f2723138aadb6d1c8fec361732a051 Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Sat, 8 Sep 2012 16:35:38 -0600 Subject: [PATCH] added notification template handling in result_notification_prepare --- symposion/reviews/views.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/symposion/reviews/views.py b/symposion/reviews/views.py index 9544c886..fc319456 100644 --- a/symposion/reviews/views.py +++ b/symposion/reviews/views.py @@ -396,6 +396,12 @@ def result_notification_prepare(request, section_slug, status): if request.method != "POST": return HttpResponseNotAllowed(["POST"]) + notification_template_pk = request.POST.get("notification_template", "") + if notification_template_pk: + notification_template = NotificationTemplate.objects.get(pk=notification_template_pk) + else: + notification_template = None + proposal_pks = [] try: for pk in request.POST.getlist("_selected_action"): @@ -413,6 +419,7 @@ def result_notification_prepare(request, section_slug, status): ctx = { "section_slug": section_slug, "status": status, + "notification_template": notification_template, "proposals": proposals, "proposal_pks": " ".join([str(pk) for pk in proposal_pks]), }