forked from beba/foerderbarometer
write surveymail_date in sendmails command
This commit is contained in:
parent
f373fceaab
commit
ea2c6f6f20
4
TODO
4
TODO
|
@ -12,7 +12,3 @@ other known problems:
|
||||||
|
|
||||||
- The DatePicker works only if you are logged in, which is mostly ok for /intern
|
- 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.
|
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.
|
|
||||||
|
|
|
@ -84,6 +84,7 @@ class Command(BaseCommand):
|
||||||
name=myname,
|
name=myname,
|
||||||
realname=item.realname)
|
realname=item.realname)
|
||||||
item.survey_mail_send = True
|
item.survey_mail_send = True
|
||||||
|
item.survey_mail_date = date.today()
|
||||||
item.save()
|
item.save()
|
||||||
self.stdout.write(self.style.SUCCESS(f'surveymails for object type {type} sent'))
|
self.stdout.write(self.style.SUCCESS(f'surveymails for object type {type} sent'))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue