LIL-718 Отправлять почты в sendgrid Closes LIL-718 See merge request lilcity/backend!233remotes/origin/editis_13-01-19
commit
044d15b547
5 changed files with 83 additions and 2 deletions
@ -0,0 +1,10 @@ |
||||
from django.core.management.base import BaseCommand |
||||
|
||||
from apps.user.tasks import subscribers_to_sendgrid |
||||
|
||||
|
||||
class Command(BaseCommand): |
||||
help = 'Send subscribers to sendgrid' |
||||
|
||||
def handle(self, *args, **options): |
||||
subscribers_to_sendgrid() |
||||
@ -0,0 +1,25 @@ |
||||
# Generated by Django 2.0.7 on 2018-12-14 01:07 |
||||
|
||||
from django.db import migrations, models |
||||
import django.utils.timezone |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
|
||||
dependencies = [ |
||||
('user', '0027_user_gallery'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='emailsubscription', |
||||
name='created_at', |
||||
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now), |
||||
preserve_default=False, |
||||
), |
||||
migrations.AddField( |
||||
model_name='emailsubscription', |
||||
name='sendgrid_sent', |
||||
field=models.BooleanField(default=False), |
||||
), |
||||
] |
||||
Loading…
Reference in new issue