'Returns the default URL to redirect to after successfully
connecting a social account.'

def get_connect_redirect_url(self, request, socialaccount):

    assert request.user.is_authenticated()
    user_url = reverse('users.user_edit', kwargs={'username': request.user.username}, locale=request.LANGUAGE_CODE)
    return user_url
