[extensions-web] Add back the "Thank you for reviewing..." message
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Add back the "Thank you for reviewing..." message
- Date: Tue, 27 Sep 2011 03:38:32 +0000 (UTC)
commit ec088eb7f385008dbce924a8d60b1a83be12ffe3
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Sep 26 16:46:15 2011 -0400
Add back the "Thank you for reviewing..." message
sweettooth/review/views.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index 3390b17..8430a09 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -12,6 +12,7 @@ import pygments.formatters
from django.conf import settings
from django.core.mail import send_mail
from django.core.urlresolvers import reverse
+from django.contrib import messages
from django.dispatch import receiver
from django.http import HttpResponse, HttpResponseForbidden, Http404
from django.shortcuts import redirect
@@ -110,6 +111,8 @@ class SubmitReviewView(SingleObjectMixin, View):
comments=request.POST.get('comments'))
review.save()
+ messages.info("Thank you for reviewing %s" % (self.object.extension.name,))
+
models.reviewed.send(sender=self, version=self.object, review=review)
return redirect('review-list')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]