Changes between Initial Version and Version 1 of Ticket #25060, comment 2


Ignore:
Timestamp:
Apr 13, 2017, 8:13:06 AM (7 years ago)
Author:
Tim Graham

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25060, comment 2

    initial v1  
    1 My
     1My specific use case is `DurationField` in [http://djangonauts.github.io/django-hstore/ django-hstore] schema mode (but I suppose it can be useful in other situations).
     2
     3Without this patch `to_python()` raise an error about inappropriate format. I agree that in my use case it's preferable to use `duration_string()` instead of `str()` for conversion, but I still didn't find the place where I can override this behavior on django-hstore side :).
     4
     5Seems now I understand why you don't implement it, `str(timedelta)` output can be locale dependent. If so this patch is controversial point.
Back to Top