summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhusudan.C.S2011-01-21 19:57:40 +0530
committerMadhusudan.C.S2011-01-21 19:57:40 +0530
commit3193526f131d059333a6bad34c73ed11babd711e (patch)
tree60ec52661cac06c5dd741da790cb43e34b2786e3
parent572888b12e83153b721015c8d7615fe9781a2028 (diff)
downloadpytask-3193526f131d059333a6bad34c73ed11babd711e.tar.gz
pytask-3193526f131d059333a6bad34c73ed11babd711e.tar.bz2
pytask-3193526f131d059333a6bad34c73ed11babd711e.zip
Fixed the getting profile and name model property.
-rw-r--r--scripts/mails.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/mails.py b/scripts/mails.py
index ce57bce..a7f6075 100644
--- a/scripts/mails.py
+++ b/scripts/mails.py
@@ -18,12 +18,12 @@ def textbook_workshop_remainder(subject_template=None, body_template=None):
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 = ''