Commits

Vladislav Polukhin committed 8870157

Value may be unicode sometimes

Comments (0)

Files changed (1)

jsonfield/fields.py

             try:
                 value = json.loads(value)
             except ValueError:
-                msg = self.error_messages['invalid'] % str(value)
+                msg = self.error_messages['invalid'] % value
                 raise ValidationError(msg)
         # TODO: Look for date/time/datetime objects within the structure?
         return value