omab/django-social-auth — Issue #176: Extra_data Validate Error in Admin
Author: jeffkit
Created: 2011-11-12 16:03:13+00:00
State: open

My django version is 1.3,social auth version is 0.6.0.

#1
when I change the extra_data for a UserSocialAuth instance in the django admin site, I got a validation error!
the extra_data value is set to:
{"access_token": "xxxxxxxx&yyyyyyyy", "friends": "", "account_name": "jeff"}
after press the save button , I got a validation error:
expected string or buffer.

#2
the extra_data before update as below:
{u'access_token': u'xxxxxxxx&yyyyyyyy', u'friends': '', u'account_name': u'jeff'}
it is not a valid json format, but I can read and write extra_data in the shell or script if I use admin site,other exception will be riase:

File "/lib/python2.6/site-packages/social_auth/fields.py", line 25, in to_python
raise ValidationError(str(e))