Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[djangoproject.com] on preview, a better message would be better.

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@7899 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4935c0c3a045b5a5ef12b33f5b84c6aac3391460 1 parent 5d94850
authored July 11, 2008

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  django_website/apps/contact/forms.py
3  django_website/apps/contact/forms.py
@@ -11,7 +11,8 @@ def subject(self):
11 11
         return "[Contact form] " + self.cleaned_data["message_subject"]
12 12
 
13 13
     def message(self):
14  
-        return textwrap.wrap(self.cleaned_data["body"], 76)
  14
+        body = "\n".join(textwrap.wrap(self.cleaned_data["body"], 76))
  15
+        return "From: %s <%s>\n\n%s" % (self.cleaned_data["name"], self.cleaned_data["email"], body)
15 16
 
16 17
 class FoundationContactForm(BaseContactForm):
17 18
     recipient_list = ["dsf-board@googlegroups.com"]

0 notes on commit 4935c0c

Please sign in to comment.
Something went wrong with that request. Please try again.