# HG changeset patch # User Madhusudan.C.S # Date 1295620060 -19800 # Node ID 50a5bdd313ac94871b3490c010ad95ede614022a # Parent 125cdcf695155a275a6a90135bd31cdaac9078d3 Fixed the getting profile and name model property. diff -r 125cdcf69515 -r 50a5bdd313ac scripts/mails.py --- 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 = ''