From ea2c6f6f20b0779b459f3cb09cbffae3700230ba Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Mon, 12 Apr 2021 13:58:50 +0200 Subject: [PATCH] write surveymail_date in sendmails command --- TODO | 4 ---- input/management/commands/sendmails.py | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/TODO b/TODO index badf3ce..b96baed 100644 --- a/TODO +++ b/TODO @@ -12,7 +12,3 @@ other known problems: - The DatePicker works only if you are logged in, which is mostly ok for /intern and there is no Date to insert at the moment in forms for externs. - -missing features: - -- every modell should store the date when the surveymail was actually send. diff --git a/input/management/commands/sendmails.py b/input/management/commands/sendmails.py index c8016c0..999d387 100644 --- a/input/management/commands/sendmails.py +++ b/input/management/commands/sendmails.py @@ -84,6 +84,7 @@ class Command(BaseCommand): name=myname, realname=item.realname) item.survey_mail_send = True + item.survey_mail_date = date.today() item.save() self.stdout.write(self.style.SUCCESS(f'surveymails for object type {type} sent'))