diff --git a/input/management/commands/sendmails.py b/input/management/commands/sendmails.py index 4790531..3a4f93f 100644 --- a/input/management/commands/sendmails.py +++ b/input/management/commands/sendmails.py @@ -76,7 +76,8 @@ class Command(BaseCommand): if type == 'LIB': mytype = item.type elif type not in ('MAIL','VIS','LIST'): - myname = getattr(item,name) + myname = item.name + print(f'name gefunden: {myname}') self.survey_link(email=item.email, type=mytype, pid=f'{mytype}{item.pk}', diff --git a/input/templates/input/survey_mail.txt b/input/templates/input/survey_mail.txt index 3819b19..0060ab2 100644 --- a/input/templates/input/survey_mail.txt +++ b/input/templates/input/survey_mail.txt @@ -3,7 +3,7 @@ Hallo, Vor einiger Zeit durfte Wikimedia Deutschland Deine Aktivität für Freies Wissen unterstützen. {% if type == 'PRO' %} -Deine Aktivitäten werden von uns unter dem Projekttitel {{name}} geführt. +Deine Aktivitäten werden von uns unter dem Projekttitel "{{name}}" geführt. {% elif type == 'HON' %} Du hast von uns eine Bescheinigung ({{name}}) erhalten. {% elif type == 'BIB' %}