From 265d63cf75f15512cb0ba54ec799b35668d41dd1 Mon Sep 17 00:00:00 2001 From: eric Date: Tue, 14 Aug 2018 15:17:32 -0400 Subject: [PATCH] corrected test for social_auth --- core/signals.py | 2 +- frontend/templates/registration/registration_complete.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/signals.py b/core/signals.py index fb8ece5b..4b8a81ea 100644 --- a/core/signals.py +++ b/core/signals.py @@ -49,7 +49,7 @@ def create_user_objects(sender, created, instance, **kwargs): if created: Wishlist.objects.create(user=instance) profile = UserProfile.objects.create(user=instance) - if hasattr(instance, 'social_auth'): + if instance.social_auth.exists(): instance.profile.ml_subscribe() except DatabaseError: # this can happen when creating superuser during syncdb since the diff --git a/frontend/templates/registration/registration_complete.html b/frontend/templates/registration/registration_complete.html index 0aff05ae..4e7d7645 100644 --- a/frontend/templates/registration/registration_complete.html +++ b/frontend/templates/registration/registration_complete.html @@ -6,7 +6,7 @@ {% if not user.is_authenticated %}

-An account activation email has been sent. Please check your email and click on the link to activate your account. We're also sending you an invitation to our email newsletter. It comes out about twice a month. Put "unglueit@ebookfoundation.org" in your contact list to make sure you get it. +An account activation email has been sent. Please check your email and click on the link to activate your account. We'll also send you an invitation to our email newsletter. It is infrequent. Put "unglueit@ebookfoundation.org" in your contact list to make sure you get it.

{% if request.COOKIES.next %}