Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[py3k] Fixed the index creation code that I committed a few minutes a…

…go for py3k.
  • Loading branch information...
commit ad50243cd143906d573b11397fa0fd080c9cd7f1 1 parent 335a9f9
Alex Gaynor authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/db/backends/
3  django/db/backends/
@@ -4,6 +4,7 @@
from django.conf import settings
from django.db.utils import load_backend
+from django.utils.encoding import force_bytes
from django.utils.six.moves import input
# The prefix to put on the default database name when creating
@@ -30,7 +31,7 @@ def _digest(self, *args):
h = hashlib.md5()
for arg in args:
- h.update(arg)
+ h.update(force_bytes(arg))
return h.hexdigest()[:8]
def sql_create_model(self, model, style, known_models=set()):

0 comments on commit ad50243

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