Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[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
jacob authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django_website/apps/contact/forms.py
View
3  django_website/apps/contact/forms.py
@@ -11,7 +11,8 @@ def subject(self):
return "[Contact form] " + self.cleaned_data["message_subject"]
def message(self):
- return textwrap.wrap(self.cleaned_data["body"], 76)
+ body = "\n".join(textwrap.wrap(self.cleaned_data["body"], 76))
+ return "From: %s <%s>\n\n%s" % (self.cleaned_data["name"], self.cleaned_data["email"], body)
class FoundationContactForm(BaseContactForm):
recipient_list = ["dsf-board@googlegroups.com"]
Please sign in to comment.
Something went wrong with that request. Please try again.