Open Mixser opened 10 months ago
my understanding is that this package is no longer maintained. You should be able to replace this with dj-rest-auth :
This is a workaround
from allauth.account.models import EmailAddress
def email_exists(email):
return EmailAddress.objects.filter(email=email).exists()
The allauth.utils module no longer contains the
email_address_exists
function (see commit: https://github.com/pennersr/django-allauth/commit/9fccdd08eacc2be9dcd284bc7edce9de692c5543). Consequently, this leads to that we are unable to run with the latest version of the Allauth library due to the absence of the email_address_exists function in the allauth.utils module.at this line https://github.com/Tivix/django-rest-auth/blob/cdd04aa9be7ad3da6b417380ee14b3ff4d5459ba/rest_auth/registration/serializers.py#L7