entities/adapters.py
changeset 10671 e08102f45237
parent 10666 7f6b5f023884
child 10731 0736e31f8644
--- a/entities/adapters.py	Thu Oct 01 11:40:23 2015 +0200
+++ b/entities/adapters.py	Tue Oct 13 16:57:09 2015 +0200
@@ -386,7 +386,7 @@
         for rschema, attrschema in eschema.attribute_definitions():
             rdef = rschema.rdef(eschema, attrschema)
             for constraint in rdef.constraints:
-                if cstrname == 'cstr' + md5(eschema.type + rschema.type + constraint.type() + (constraint.serialize() or '')).hexdigest():
+                if cstrname == 'cstr' + md5((eschema.type + rschema.type + constraint.type() + (constraint.serialize() or '')).encode('ascii')).hexdigest():
                     break
             else:
                 continue