fixed bug which leeds to mails not be sent

This commit is contained in:
Benni Bärmann 2021-03-16 13:08:50 +01:00
parent f870fcab08
commit 276acec502
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ class Command(BaseCommand):
if type == 'LIB':
mytype = item.type
elif type not in ('MAIL','VIS','LIST'):
myname = item.name
myname = getattr(item, name, 'ERROR: NONAME')
print(f'name gefunden: {myname}')
self.survey_link(email=item.email,
type=mytype,

View File

@ -10,7 +10,7 @@ Du hast von uns eine Bescheinigung ({{name}}) erhalten.
Du hast von uns ein Bibliotheksstipendium für {{name}} erhalten.
{% elif type == 'ELIT' %}
Du hast von uns ein eLiteraturstipendium für {{name}} erhalten.
{% elif type == 'IFG'}
{% elif type == 'IFG' %}
Wir haben Dich bei einer IFG-Anfrage unterstützt: {{name}}
{% elif type == 'LIT' %}
Du hast von uns ein Literaturstipendium für {{name}} erhalten.