We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca57916 commit c2d0942Copy full SHA for c2d0942
sqlcipher/signals.py
@@ -1,9 +1,11 @@
1
+from __future__ import unicode_literals
2
+
3
from django.conf import settings
4
from django.db.backends.signals import connection_created
5
6
7
def sqlite_set_pragma(connection, **kwargs):
- pragma_sql = "PRAGMA key='%s';" % (settings.PRAGMA_KEY,)
8
+ pragma_sql = "PRAGMA key='%s';" % (settings.PRAGMA_KEY.decode("utf-8"),)
9
cursor = connection.cursor()
10
cursor.execute(pragma_sql)
11
cursor.close()
0 commit comments