improving data we get from our feedback form
parent
e70dc31867
commit
e94219fd0e
|
@ -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})
|
||||||
|
|
Loading…
Reference in New Issue