Changes between Initial Version and Version 1 of Ticket #25060, comment 2
- Timestamp:
- Apr 13, 2017, 8:13:06 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25060, comment 2
initial v1 1 My 1 My 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 3 Without 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 5 Seems now I understand why you don't implement it, `str(timedelta)` output can be locale dependent. If so this patch is controversial point.