Skip to content

Commit

Permalink
Fixing breaking change in django 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlovelltroy committed Oct 13, 2014
1 parent b2c90e1 commit 79da005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classy_mail/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
logger = logging.getLogger("classy_mail")
from django.contrib.auth import get_user_model
from django.conf import settings
from django.db import models

class EmailTemplate(models.Model):
Expand All @@ -15,7 +15,7 @@ def __unicode__(self):


class CampaignAddressee(models.Model):
user = models.ForeignKey(get_user_model(), blank=True, null=True)
user = models.ForeignKey(settings.AUTH_USER_MODEL, blank=True, null=True)
email_address = models.EmailField(unique=True)
first_name = models.CharField(max_length=128, null=True, blank=True)
last_name = models.CharField(max_length=128, null=True, blank=True)
Expand Down

0 comments on commit 79da005

Please # to comment.