Re: TypeError:
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
On Thursday, November 15, 2012 3:05:02 PM UTC-5, Satinder Goraya wrote:
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/
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/5FIrn7R-NCkJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home