scripts/mails.py
changeset 511 50a5bdd313ac
parent 509 288d1dfb81c0
child 517 bbc20d6428ad
--- a/scripts/mails.py	Fri Jan 21 19:48:33 2011 +0530
+++ b/scripts/mails.py	Fri Jan 21 19:57:40 2011 +0530
@@ -18,12 +18,12 @@
 
     users = User.objects.all()
 
-    subject = loader.render_to_string(subject_template)
+    subject = loader.render_to_string(subject_template).strip(' \n\t')
 
     for user in users:
-        profile = user.getprofile()
+        profile = user.get_profile()
         if profile:
-            full_name = profile.name
+            full_name = profile.full_name
         else:
             full_name = ''