Commits

Matthew Schinckel committed e642b8e

I keep changing my mind.
Empty string in value now goes to None, regardless.

Comments (0)

Files changed (1)

timedelta/fields.py

             return value
         if isinstance(value, int):
             return datetime.timedelta(seconds=value)
+        if value == "":
+            return None
         return parse(value)
     
     def get_prep_value(self, value):