Commits

Matthew Schinckel committed 3a9dbc4

Don't fail installing if django is not yet installed.

  • Participants
  • Parent commits 4c4106f

Comments (0)

Files changed (1)

timedelta/__init__.py

 __version__ = "0.5.1"
 
-from fields import TimedeltaField
-
-from helpers import divide, multiply, modulo, parse, nice_repr, percentage
+try:
+    from fields import TimedeltaField
+    from helpers import divide, multiply, modulo, parse, nice_repr, percentage
+except ImportError:
+    pass