summaryrefslogtreecommitdiff
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:08:41 +0100
commitdb227d9d20d848c56f94ce0ca175fde7e1180c21 (patch)
treebd79d5e58545cdc041a558ddea9ba2f0c3e8931b
parent61be9373af859931129b76e0a6138b47c2f82a83 (diff)
[1.6.x] 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. Backport of 0d74209ef66111f29f122d5f5fdf8e2964890cc5 from master.
-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 f7f242d7b9..09e7555c3b 100644
--- a/docs/topics/email.txt
+++ b/docs/topics/email.txt
@@ -174,6 +174,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', '')