#28864: Allow overriding the default dropdown list for the time widget in Django
admin
---------------------------------------------+------------------------
Reporter: jeffrey k eliasen | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: master
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 |
---------------------------------------------+------------------------
Right now all time widgets in the admin offer a dropdown list of times to
enter, but the list is only 5 times: "now", "6 am", "noon", "6 pm", and
"midnight". For most use cases this list is not practical.
I propose altering the javascript so that the user can either override a
javascript function that builds the list or (better) alter the widget so
that details about the start time, stop time, and minutes increment are
provided as parameters on the TimeField or DateTimeField.
I will be creating a PR for this change in the next week or so.
--
Ticket URL: <https://code.djangoproject.com/ticket/28864>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.9c445356153f799b4cfda6746c846e2c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.