summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKevin Ndung'u <kevgathuku@gmail.com>2014-11-23 20:47:28 +0300
committerBaptiste Mispelon <bmispelon@gmail.com>2014-11-23 23:03:58 +0100
commit0d74209ef66111f29f122d5f5fdf8e2964890cc5 (patch)
tree37e985af67617477249789a924a806fcb272975f /docs
parent18533fb558f66377c42bbbab672503253d3668d1 (diff)
Fixed #23900 -- Added missing imports in code example.
The Preventing header injection example included classes that are not imported. Thanks to Collin Anderson and Berker Peksağ for the reviews.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/email.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/topics/email.txt b/docs/topics/email.txt
index c49e9ed9ee..7333ae7110 100644
--- a/docs/topics/email.txt
+++ b/docs/topics/email.txt
@@ -188,6 +188,7 @@ from the request's POST data, sends that to admin@example.com and redirects to
"/contact/thanks/" when it's done::
from django.core.mail import send_mail, BadHeaderError
+ from django.http import HttpResponse, HttpResponseRedirect
def send_email(request):
subject = request.POST.get('subject', '')