Closed chripede closed 7 years ago
Your problem looks more like that the create_user(*args, **kwargs)
call is passing all the parameters you sent to it, that will cause you trouble with Django ORM, that's why the default pipeline limits the data passed to just the needed fields. You shouldn't be passing attributes that aren't part of the model to that method.
I'm using partial pipelines to append fields to
details
. Those fields are used in mycreate_user
for other things than storing them on the user object.However because of this commit: https://github.com/omab/python-social-auth/commit/9f86059e9d8070bc5ecd7ba069fadab1c9bf502a
IntegrityErrors (user email already exists) the exception handling will now try to look up the user using all the fields from args and kwargs. This includes all fields from
details
. This will result in a FieldError from Django because not all fields fromdetails
are found on the user model