Commits

Matthew Schinckel committed 1913215

Don't a value as changed if they are both None or empty.

Comments (0)

Files changed (1)

timedelta/widgets.py

         We need to make sure the objects are of the canonical form, as a
         string comparison may needlessly fail.
         """
+        if initial in ["", None] and data in ["", None]:
+            return False
+        
         if not isinstance(initial, datetime.timedelta):
             initial = parse(initial)
         if not isinstance(data, datetime.timedelta):