On Jun 7, 1:05 am, eelcoh <[EMAIL PROTECTED]> wrote:
> I have found out that the problem seems to happen on TextFields only.
> I do not have a problem with CharFields.
>
> eelco
I fixed it by adding the following to the TextField class in /django/
db/models/db/fields/__init__.py:
def get_db_prep_save(self, value):
if value is not None:
if settings.DATABASE_ENGINE == 'mysql':
value = unicode(value)
return Field.get_db_prep_save(self, value)
eelco
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---