#25060: Add support for str(timedelta) representation in parse_duration -----------------------------+------------------------------------ Reporter: Mikhail | Owner: nobody Type: New feature | Status: closed Component: Utilities | Version: master Severity: Normal | Resolution: fixed Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 1 Needs tests: 1 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------+------------------------------------ Changes (by Baptiste Mispelon):
* status: new => closed * resolution: => fixed Comment: Replying to [comment:10 Matthew Schinckel]: > I think the parse_duration() function already does this. That's correct. It looks like this was inadvertently added with #24897 (262d4db8c4c849b0fdd84550fb96472446cf90df). There are even tests for a variety of different `timedelta` cases: https://github.com/django/django/blob/a5855c8f0fe17b7e888bd8137874ef78012a7294/tests/utils_tests/test_dateparse.py#L54 -- Ticket URL: <https://code.djangoproject.com/ticket/25060#comment:11> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.e31e47e3edb6ed4a2c6a2182fcab2296%40djangoproject.com.