Commits

Matthew Schinckel  committed 2f02a71

Better handle empty/None values

  • Participants
  • Parent commits 03c6915

Comments (0)

Files changed (1)

File timedelta/widgets.py

         """
         if initial in ["", None] and data in ["", None]:
             return False
+            
+        if initial in ["", None] or data in ["", None]:
+            return True
         
         if not isinstance(initial, datetime.timedelta):
             initial = parse(initial)