From 8afba9477df6a0e9b4fb3db4ee4d2b92b7ae695d Mon Sep 17 00:00:00 2001 From: gzbender Date: Tue, 28 May 2019 23:30:29 +0300 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B8=D1=81=D0=BE=D0=B2=D0=B0=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=8B=D0=B9=20=D0=BB=D0=B0=D0=B3=D0=B5=D1=80=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/notification/email/camp_certificate.html | 8 +++++++- project/settings.py | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/notification/templates/notification/email/camp_certificate.html b/apps/notification/templates/notification/email/camp_certificate.html index 98f83bbf..f4152c79 100644 --- a/apps/notification/templates/notification/email/camp_certificate.html +++ b/apps/notification/templates/notification/email/camp_certificate.html @@ -12,10 +12,16 @@ {% endif %} {% if certificate_number == 2 %}

-Вы помните, что каждый месяц вам приходит грамота за прекрасную учебу в рсиовальном лагере?
+Вы помните, что каждый месяц вам приходит грамота за прекрасную учебу в рисовальном лагере?
Скачивайте. Распечатывайте. И соберите свою коллекцию!

{% endif %} + {% if certificate_number == 3 %} +

+Вот и закончился лагерь, пора переходить к основным урокам.
+Спасибо, что были с нами, успехов вам в дальнейшем обучении! +

+ {% endif %}

diff --git a/project/settings.py b/project/settings.py index 2cd1afd3..88f9749d 100644 --- a/project/settings.py +++ b/project/settings.py @@ -277,6 +277,11 @@ CELERY_BEAT_SCHEDULE = { 'schedule': crontab(0, 9, day_of_month='1', month_of_year='8'), 'kwargs': {'certificate_number': 2}, }, + 'send_august_camp_certificates': { + 'task': 'apps.notification.tasks.send_camp_certificates', + 'schedule': crontab(0, 9, day_of_month='1', month_of_year='9'), + 'kwargs': {'certificate_number': 3}, + }, } try: