diff options
Diffstat (limited to 'scripts/mails.py')
-rw-r--r-- | scripts/mails.py | 6 |
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 = '' |