Skip to content
Browse files

Arrays of strings should automatically be converted to unicode when

retrieved by the database
  • Loading branch information...
1 parent 8855f93 commit 64acb9e688537a0a526fc759df8ca2c3ea914817 @babymastodon babymastodon committed Jul 7, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/db/backends/postgresql_psycopg2/base.py
View
1 django/db/backends/postgresql_psycopg2/base.py
@@ -28,6 +28,7 @@
IntegrityError = Database.IntegrityError
psycopg2.extensions.register_type(psycopg2.extensions.UNICODE)
+psycopg2.extensions.register_type(psycopg2.extensions.UNICODEARRAY)
psycopg2.extensions.register_adapter(SafeString, psycopg2.extensions.QuotedString)
psycopg2.extensions.register_adapter(SafeUnicode, psycopg2.extensions.QuotedString)

0 comments on commit 64acb9e

Please sign in to comment.
Something went wrong with that request. Please try again.