Django

Code

Changeset 7899

Show
Ignore:
Timestamp:
07/11/08 13:21:55 (4 months ago)
Author:
jacob
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • djangoproject.com/django_website/apps/contact/forms.py

    r7898 r7899  
    1212 
    1313    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) 
    1516 
    1617class FoundationContactForm(BaseContactForm):