improving data we get from our feedback form

pull/1/head
Andromeda Yelton 2012-01-15 19:02:50 -05:00
parent e70dc31867
commit e94219fd0e
1 changed files with 5 additions and 1 deletions

View File

@ -1234,7 +1234,11 @@ def feedback(request):
sender = form.cleaned_data['sender'] sender = form.cleaned_data['sender']
recipient = 'support@gluejar.com' recipient = 'support@gluejar.com'
page = form.cleaned_data['page'] page = form.cleaned_data['page']
message = "<<<This feedback is about "+page+". Original user message follows: >>>"+message if request.user.is_anonymous():
ungluer = "(not logged in)"
else:
ungluer = request.user.username
message = "<<<This feedback is about "+page+". Original user message (from "+sender+"; ungluer name "+ungluer+") follows: >>>"+message
send_mail(subject, message, sender, [recipient]) send_mail(subject, message, sender, [recipient])
return render(request, "thanks.html", {"page":page}) return render(request, "thanks.html", {"page":page})