In another post, I mentioned that I was trying to use allauth\'s email_confirmed signal to change the is_active field on the confirmed user to true. However, the following c
Turns out the email_address returned by the email_confirmed signal isn't actually a string containing the address, but an object -- allauth.account.models.EmailAddress. This wasn't very clear at all from the documentation, but glad it's resolved now. The code that ended up working was:
@receiver(email_confirmed)
def email_confirmed_(request, email_address, **kwargs):
user = User.objects.get(email=email_address.email)
user.is_active = True
user.save()