diff --git a/exposition/views.py b/exposition/views.py index 43bdda07..fc5dfba7 100644 --- a/exposition/views.py +++ b/exposition/views.py @@ -522,5 +522,7 @@ def send_to_organiser(request, slug): msg = EmailMessage(u'Проплаченная выставка', text, settings.DEFAULT_FROM_EMAIL, [mail_send]) msg.content_subtype = "html" msg.send() - return HttpResponseRedirect('%sservice/thanks/'%exposition.get_permanent_url()) + redirect_to = '%sservice/thanks/'%exposition.get_permanent_url() + + return HttpResponseRedirect(json.dumps({'success':True, 'redirect_to': redirect_to}), content_type='application/json')