1. Matthew Schinckel
  2. django-timedelta-field


Mike Fogel  committed 760bb35

passing render and nice_repr tests again

d9b4f29eff5a changed (it appears unintentionally) of nice_repr to not
include commas seperating time units in the output string. This commit
restores the comma-seperating behavoir.

  • Participants
  • Parent commits a3ae8a2
  • Branches default

Comments (0)

Files changed (1)

File timedelta/helpers.py

View file
 import datetime
 from decimal import Decimal
-def nice_repr(timedelta, display="long", sep=" "):
+def nice_repr(timedelta, display="long", sep=", "):
     Turns a datetime.timedelta object into a nice string repr.