Matthew Schinckel  committed a59bfb1

Parsed dumped data before assigning it as the default...
still not sure if this is good enough.

  • Participants
  • Parent commits f92caa9
  • Branches default

Comments (0)

Files changed (1)

File jsonfield/

             if callable(self.default):
                 self.validate(self.default(), None)
-                self.default = json.dumps(self.default)
+                # Maybe check to see if this is a string, and try
+                # loads-ing it first?
+                self.default = json.loads(json.dumps(self.default))
                 self.validate(self.default, None)
     def formfield(self, **kwargs):