Django 1.4: TypeError: get_db_prep_value() got an unexpected keyword argument 'connection'

2012-04-07 Thread xthepoet
This was working fine for my Ubuntu 10.04LTE system with Django 1.3.1. It seems broken now in 1.4. In Django 1.4, I get this error TypeError: get_db_prep_value() got an unexpected keyword argument 'connection' when saving an image to an ImageField. System (installed from Ubuntu Lucid repository

Re: Django 1.4: TypeError: get_db_prep_value() got an unexpected keyword argument 'connection'

2012-04-07 Thread Shawn Milochik
On Sat, Apr 7, 2012 at 12:03 AM, xthepoet wrote: > This was working fine for my Ubuntu 10.04LTE system with Django > 1.3.1. It seems broken now in 1.4. > > In Django 1.4, I get this error TypeError: get_db_prep_value() got an > unexpected keyword argument 'connection' when saving an image to an

Re: Django 1.4: TypeError: get_db_prep_value() got an unexpected keyword argument 'connection'

2012-04-07 Thread Russell Keith-Magee
Hi, What you've hit here is the end of the deprecation cycle for code that doesn't support multiple databases. In Django 1.2, we introduced multiple database support; in order to support this, the prototype for get_db_preb_lookup() and get_db_prep_value() was changed. For backwards compatibil

Re: Django 1.4: TypeError: get_db_prep_value() got an unexpected keyword argument 'connection'

2012-04-08 Thread shacker
On Saturday, April 7, 2012 8:02:46 AM UTC-7, Shawn Milochik wrote: > > >> > Field objects take 'connection' and 'prepared' kwargs in Django 1.4. It > sounds like you're using a custom field which was written before those > parameters existed, or perhaps you upgraded from a previous version and >

Re: Django 1.4: TypeError: get_db_prep_value() got an unexpected keyword argument 'connection'

2012-04-08 Thread Shawn Milochik
On 04/08/2012 11:25 AM, shacker wrote: alias delpyc='find . -name "*.pyc" -print0 | xargs -0 rm -rf' Then you safely run "delpyc" from the top level of your project at any time to remove them all, ensuring that whatever problem you're experiencing isn't a result of them. This is probably

Re: Django 1.4: TypeError: get_db_prep_value() got an unexpected keyword argument 'connection'

2012-04-10 Thread Tom Evans
On Sun, Apr 8, 2012 at 4:25 PM, shacker wrote: > Russell's response is correct, but speaking of stale *.pyc files that > may occasionally bite you, try putting this in your bash aliases: > > alias delpyc='find . -name "*.pyc" -print0 | xargs -0 rm -rf' > > Then you safely run "delpyc" from the top

Re: Django 1.4: TypeError: get_db_prep_value() got an unexpected keyword argument 'connection'

2012-11-23 Thread Felix Guo
I also have this problem, I don't have any custom field and still see this error. I have completely remove all previous django, but after I install latest django 1.4.2, I can still find your function: get_db_prep_save appeared in /usr/local/lib/python2.7/dist-packages/django/db/models/sql/com