summaryrefslogtreecommitdiff
path: root/comments/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'comments/views.py')
-rw-r--r--comments/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/comments/views.py b/comments/views.py
index a095727..15a174b 100644
--- a/comments/views.py
+++ b/comments/views.py
@@ -36,6 +36,7 @@ def new_comment(request):
comment.page = form.cleaned_data.get("page")
comment.title = form.cleaned_data.get("title")
comment.body = form.cleaned_data.get("body")
+ comment.email = form.cleaned_data.get("email")
comment.save()
return HttpResponseRedirect(
'/comments/get/?book={0}&chapter={1}&example={2}&page={3}'.format(
@@ -84,6 +85,7 @@ def new_reply(request):
reply = Reply()
reply.comment = comment
reply.body = form.cleaned_data.get('body')
+ reply.email = form.cleaned_data.get('email')
reply.save()
return HttpResponseRedirect(
'/comments/get/?book={0}&chapter={1}&example={2}&page={3}'.format(