On Sat, Apr 7, 2012 at 12:03 AM, xthepoet <sandra....@gmail.com> 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
> ImageField.
>
>
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
didn't delete all the .pyc files.

If it's the latter, it's a good idea to completely delete your Django
directory from site-packages before re-installing. If it's the former, you
can add the kwargs with a default of None and pass the values to the
super() call.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to