TypeError:

21 views
Skip to first unread message

Satinderpal Singh

unread,
Nov 15, 2012, 3:03:59 PM11/15/12
to greatde...@googlegroups.com, django...@googlegroups.com
I am using a custom field "SeparatedValuesField" for saving array
values in my models. When i tried to save the values in it, in the
python shell, it gives the following error:
TypeError: get_db_prep_value() got an unexpected keyword argument 'connection'
Is anybody know, what error is this, and how will save the array
values to my models.
--
Satinderpal Singh
http://satindergoraya.blogspot.in/
http://satindergoraya91.blogspot.in/

Victor Rocha

unread,
Nov 16, 2012, 9:54:00 AM11/16/12
to django...@googlegroups.com, greatde...@googlegroups.com
Take a look at this thread. 

It seems that your custom field is outdated. Field objects in django 1.4 now take two new named arguments: "connection" and "prepared". Update your field to be in compliance with new django 1.4 specifications and you should be fine.

Thank you,
Victor Rocha
Reply all
Reply to author
Forward
0 new messages