#13965: psycopg2 throws an "can't adapt" error on ugettext_lazy translated
strings
-------------------------------------------+--------------------------------
Reporter: mitar | Owner: nobody
Status: new | Milestone:
Component: Internationalization | Version: 1.2
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Changes (by mitar):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
The workaround is to use small lambda wrapper (default can be also a
callable) with non-lazy ugettext. Or to use a lambda with force_unicode if
you are getting lazily translated string from some other code somewhere
else (this above is just a simple example).
--
Ticket URL: <http://code.djangoproject.com/ticket/13965#comment:1>
Django <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.