Skip to content
Browse files

adding test

  • Loading branch information...
1 parent 71a8849 commit ae94fb393549f50d783ff17527485c9589a7bd0a @oraclebill committed Sep 13, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/demo/forms.py
View
3 test/demo/forms.py
@@ -2,6 +2,7 @@
from django import forms
from django.conf import settings
from django.core.mail import send_mail
+from django.utils.translation import ugettext_lazy
class EmailForm(forms.Form):
@@ -14,7 +15,7 @@ def save(self, fail_silently=False):
"""
Build and send the email message.
"""
- send_mail(subject=self.cleaned_data['subject'],
+ send_mail(subject=ugettext_lazy(self.cleaned_data['subject']),
message=self.cleaned_data['body'],
from_email=self.cleaned_data['sender'],
recipient_list=[addr.strip() for addr in self.cleaned_data['to'].split(',')],

0 comments on commit ae94fb3

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