This commit is contained in:
sanj 2010-11-20 20:01:51 +05:30
parent bc05ea82da
commit 0c44af7558

View File

@ -28,7 +28,7 @@ def comments_notify(sender, **kwargs):
content = comment.comment content = comment.comment
erang_id = comment.content_object.id erang_id = comment.content_object.id
comment_id = comment.id comment_id = comment.id
url = "http://theatreforum.in/erang/?issue_id=%d" % (img_id) url = "http://theatreforum.in/erang/?issue_id=%d" % (erang_id)
admin_url = "http://theatreforum.in/admin/comments/comment/%d/" % (comment_id) admin_url = "http://theatreforum.in/admin/comments/comment/%d/" % (comment_id)
message = "Page: %s \n Name: %s \n Email: %s \n Comment: %s\n\n Moderate: %s" % (url, name, email, content, admin_url) message = "Page: %s \n Name: %s \n Email: %s \n Comment: %s\n\n Moderate: %s" % (url, name, email, content, admin_url)
send_mail("New comment on E-Rang", message, "do_not_reply@theatreforum.in", ["erang@theatreforum.in", "sanjaybhangar@gmail.com", "sharvari@theatreforum.in"]) send_mail("New comment on E-Rang", message, "do_not_reply@theatreforum.in", ["erang@theatreforum.in", "sanjaybhangar@gmail.com", "sharvari@theatreforum.in"])