2020-10-07 11:21:21 +02:00
|
|
|
from django.core.management.base import BaseCommand, CommandError
|
|
|
|
|
2020-10-07 13:15:00 +02:00
|
|
|
# mails must be send here:
|
|
|
|
#
|
|
|
|
# - two weeks after confirmation of support for volunteer (/extern) send link
|
|
|
|
# with surveylink
|
|
|
|
#
|
|
|
|
# - same for HonoraryCertificate and accreditation
|
|
|
|
#
|
|
|
|
# - travel: mail 3 weeks after end of project.
|
|
|
|
#
|
|
|
|
# - assumed end of project (/project) reached: mail to IF, link to project-editpage
|
|
|
|
#
|
|
|
|
|
2020-10-07 11:21:21 +02:00
|
|
|
class Command(BaseCommand):
|
|
|
|
help = 'This command sends mail with surveylinks after some amount of time.'
|
|
|
|
|
|
|
|
def handle(self, *args, **options):
|
2020-10-07 13:15:00 +02:00
|
|
|
|
2020-10-07 11:21:21 +02:00
|
|
|
self.stdout.write(self.style.SUCCESS('sendmails custom command executed'))
|