diff options
| author | Kevin Ndung'u <kevgathuku@gmail.com> | 2014-11-23 20:47:28 +0300 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2014-11-23 23:08:13 +0100 |
| commit | 22d292e23b1b60fd5c304b3d867ecf70860e7048 (patch) | |
| tree | 55d3271609a75bb8a27fdff0a940234c0844ac78 | |
| parent | 2d06c112d1b737578cd54b9193fce20d3bf10a6f (diff) | |
[1.7.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.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/topics/email.txt b/docs/topics/email.txt index 6e8d433b7c..20115edd6c 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', '') |
