|
|
|
@ -137,7 +137,7 @@ def send_user_info_to_mixpanel(sender, instance=None, created=False, **kwargs): |
|
|
|
def auto_create_subscription(sender, instance=None, created=False, **kwargs): |
|
|
|
def auto_create_subscription(sender, instance=None, created=False, **kwargs): |
|
|
|
try: |
|
|
|
try: |
|
|
|
es = EmailSubscription.objects.get(email=instance.email) |
|
|
|
es = EmailSubscription.objects.get(email=instance.email) |
|
|
|
if not es.user: |
|
|
|
if not hasattr(instance, 'email_subscription'): |
|
|
|
es.user = instance |
|
|
|
es.user = instance |
|
|
|
es.save() |
|
|
|
es.save() |
|
|
|
except EmailSubscription.DoesNotExist: |
|
|
|
except EmailSubscription.DoesNotExist: |
|
|
|
|