Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
CTB
ctb-platform-backend-antigo
Commits
da0c4f65
Commit
da0c4f65
authored
Apr 02, 2018
by
Virgílio N Santos
Browse files
social plugins: fix adapter parent call
parent
45dc14d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
base_django_project/users/adapters.py
base_django_project/users/adapters.py
+1
-1
No files found.
base_django_project/users/adapters.py
View file @
da0c4f65
...
...
@@ -4,7 +4,7 @@ from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class
SocialAccountAdapter
(
DefaultSocialAccountAdapter
):
def
populate_user
(
self
,
request
,
sociallogin
,
data
):
user
=
super
().
populate_user
(
request
,
sociallogin
,
data
)
user
=
super
(
SocialAccountAdapter
,
self
).
populate_user
(
request
,
sociallogin
,
data
)
# FIXME: Is it possible to import more info from a Social Account (Facebook)?
user
.
name
=
data
.
get
(
'name'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment