# Path: lkdcourses/mailing/constants.py
# MAIL_TEMPLATES = (
#     (APPROVE_APPLICATION_EMAIL_TEMPLATE, "Application Approved"),
#     (REJECT_APPLICATION_EMAIL_TEMPLATE, "Application Rejected"),
# )


from django.db import models
from django.utils import timezone
from .constants import MAIL_TEMPLATES
from __future__ import unicode_literals




class MailLog(models.Model):
    to = models.ForeignKey("profiles.UserProfile", related_name="mail_profile")
    type = models.CharField(choices=MAIL_TEMPLATES, max_length=32)
    sent_at = models.DateTimeField(default=timezone.now)

# Path: lkdcourses/mailing/constants.py
# MAIL_TEMPLATES = (
#     (APPROVE_APPLICATION_EMAIL_TEMPLATE, "Application Approved"),
#     (REJECT_APPLICATION_EMAIL_TEMPLATE, "Application Rejected"),
# )


# Path: lkdcourses/mailing/models.py
from django.db import models
from django.utils import timezone
from .constants import MAIL_TEMPLATES

from __future__ import unicode_literals




class MailLog(models.Model):
    to = models.ForeignKey("profiles.UserProfile", related_name="mail_profile")
    type = models.CharField(choices=MAIL_TEMPLATES, max_length=32)
    sent_at = models.DateTimeField(default=timezone.now)

    mandrill_response_id = models.CharField(max_length=255, null=True, blank=True)