Skip to content

Commit 3ac09d1

Browse files
committed
use adapter instead #1895
1 parent b912038 commit 3ac09d1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

oeplatform/views.py

-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from allauth.socialaccount.signals import pre_social_login
2-
from django.dispatch import receiver
31
from django.shortcuts import redirect
42
from django.views import View
53

@@ -14,11 +12,3 @@ def get(self, request, f):
1412
def redirect_tutorial(request):
1513
"""all old links totutorials: redirect to new (external) page"""
1614
return redirect(settings.EXTERNAL_URLS["tutorials_index"])
17-
18-
19-
@receiver(pre_social_login)
20-
def populate_profile(request, sociallogin, **kwargs):
21-
social_account = sociallogin.account
22-
user = request.user
23-
user.name = social_account.name
24-
user.save()

0 commit comments

Comments
 (0)