Commits

Matthew Schinckel  committed 7751395 Merge

Merge

  • Participants
  • Parent commits 06e08b0, fa7fbd0

Comments (0)

Files changed (1)

File timedelta/fields.py

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