Commits

Matthew Schinckel committed b0d598f

Better handle NULL fields.

  • Participants
  • Parent commits 35c0936

Comments (0)

Files changed (1)

File jsonfield/fields.py

 
     def to_python(self, value):
         if isinstance(value, basestring):
+            if value == "":
+                return None
             value = json.loads(value)
         return value