#33349: Add option to produce duration_string without days
----------------------------------------+------------------------
               Reporter:  Claude Paroz  |          Owner:  nobody
                   Type:  New feature   |         Status:  new
              Component:  Forms         |        Version:  dev
               Severity:  Normal        |       Keywords:
           Triage Stage:  Unreviewed    |      Has patch:  0
    Needs documentation:  0             |    Needs tests:  0
Patch needs improvement:  0             |  Easy pickings:  0
                  UI/UX:  0             |
----------------------------------------+------------------------
 I have a form with a custom field (inheriting from Django's DurationField)
 allowing to input duration in the form "hh:mm".

 However, when user inputs durations > "23:59", re-displaying those
 durations is kind of broken ("1 ..."). Customizing `prepare_value` is
 rather straightforward, however I'd like to avoid rewriting the whole
 `django.utils.duration.duration_string`. If that function would accept a
 `use_days` argument, it would be a lot easier to achieve my use case.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33349>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.7a33fff795f28ad88a5fe533b580b413%40djangoproject.com.

Reply via email to