#5996: psycopg2 raises "can't adapt" error where other backends work happily
---------------------+------------------------------------------------------
Reporter: zgoda | Owner: nobody
Status: new | Component: Database wrapper
Version: SVN | Resolution:
Keywords: | Stage: Unreviewed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
---------------------+------------------------------------------------------
Comment (by [EMAIL PROTECTED]):
I think I have the same problem, but it is related to SafeString and
SafeUnicode objects.
In my case I have inclusion tag which accepts string as second argument.
{{{
{% some_inclusion_tag some_value %}
}}}
Inclusion tag code:
{{{
@inclusion_tag....
def some_inclusion_tag(value):
obj = Klass.object.get(value=value)
}}}
and this raises "Can't adapt" error.
But look at that:
{{{
>>> type(value)
<class 'django.utils.safestring.SafeUnicode'>
}}}
Could you check type of "self.title" ?
--
Ticket URL: <http://code.djangoproject.com/ticket/5996#comment:2>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---