Trying to get production to line up with master

pull/1/head
Raymond Yee 2012-05-11 15:05:40 -07:00
parent 1b16603056
commit 2590c5d58d
1 changed files with 5 additions and 1 deletions

View File

@ -37,7 +37,7 @@ from django.shortcuts import render, render_to_response, get_object_or_404
from django.utils.http import urlencode
from django.utils.translation import ugettext_lazy as _
from regluit.core import tasks
from regluit.core.tasks import send_mail_task
from regluit.core.tasks import send_mail_task, emit_notifications
from regluit.core import models, bookloader, librarything
from regluit.core import userlists
from regluit.core.search import gluejar_search
@ -817,6 +817,10 @@ class PledgeCompleteView(TemplateView):
context["works"] = works
context["works2"] = works2
# generate notices with same context used for user page
notification.queue([transaction.user], "pledge_you_have_pledged", context, True)
emit_notifications.delay()
return context