Author: jacob
Date: 2008-07-11 13:21:55 -0500 (Fri, 11 Jul 2008)
New Revision: 7899

Modified:
   djangoproject.com/django_website/apps/contact/forms.py
Log:
[djangoproject.com] on preview, a better message would be better.

Modified: djangoproject.com/django_website/apps/contact/forms.py
===================================================================
--- djangoproject.com/django_website/apps/contact/forms.py      2008-07-11 
18:18:26 UTC (rev 7898)
+++ djangoproject.com/django_website/apps/contact/forms.py      2008-07-11 
18:21:55 UTC (rev 7899)
@@ -11,7 +11,8 @@
         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 = ["[EMAIL PROTECTED]"]
\ No newline at end of file


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to