From d39fb2c87a384e5a6e1b2f6879635e62445efad3 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Wed, 17 Mar 2021 13:54:11 +0100 Subject: [PATCH] BUGFIX: more wrong names in surveymails --- input/management/commands/sendmails.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input/management/commands/sendmails.py b/input/management/commands/sendmails.py index 8b274ec..c8016c0 100644 --- a/input/management/commands/sendmails.py +++ b/input/management/commands/sendmails.py @@ -104,7 +104,7 @@ class Command(BaseCommand): supported = HonoraryCertificate.objects.filter(granted=True)\ .filter(granted_date__lt = date.today() - timedelta(days=14))\ .exclude(survey_mail_send=True) - self.surveymails_to_object(supported, type='HON', name='request_url') + self.surveymails_to_object(supported, type='HON', name='project') def surveymails_to_ifg(self): '''get all IFG objects which where granted two weeks ago''' @@ -127,7 +127,7 @@ class Command(BaseCommand): supported = Project.objects.filter(granted=True)\ .filter(end__lt = date.today() - timedelta(days=28))\ .exclude(survey_mail_send=True) - self.surveymails_to_object(supported, type='PRO', name='realname') + self.surveymails_to_object(supported, type='PRO', name='name') def surveymails_to_travel(self): '''send survey link 3 weeks after end of project reached'''