BUGFIX: correct project name is used now in surveymail

This commit is contained in:
Benni Bärmann 2021-02-08 09:57:21 +01:00
parent 9c23d8bddd
commit f870fcab08
2 changed files with 3 additions and 2 deletions

View File

@ -76,7 +76,8 @@ class Command(BaseCommand):
if type == 'LIB': if type == 'LIB':
mytype = item.type mytype = item.type
elif type not in ('MAIL','VIS','LIST'): 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, self.survey_link(email=item.email,
type=mytype, type=mytype,
pid=f'{mytype}{item.pk}', pid=f'{mytype}{item.pk}',

View File

@ -3,7 +3,7 @@ Hallo,
Vor einiger Zeit durfte Wikimedia Deutschland Deine Aktivität für Freies Wissen Vor einiger Zeit durfte Wikimedia Deutschland Deine Aktivität für Freies Wissen
unterstützen. unterstützen.
{% if type == 'PRO' %} {% 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' %} {% elif type == 'HON' %}
Du hast von uns eine Bescheinigung ({{name}}) erhalten. Du hast von uns eine Bescheinigung ({{name}}) erhalten.
{% elif type == 'BIB' %} {% elif type == 'BIB' %}