Opened 8 years ago
Last modified 13 months ago
#27466 new New feature
Use a datepicker widget for Date[Time]RangeField in admin
Reported by: | Adrien Brunet | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 1.10 |
Severity: | Normal | Keywords: | forms, admin, jquery, datepicker |
Cc: | Tom Carrick | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Description
When using a Date[Time]RangeField in the admin, the rendering is weird, at least not the expected one.
It's barely usable as is. See screenshot with one datetimeRangeField, one DateRangeField and a DateTimeField. http://imgur.com/a/6Z12Z
Cheers
Attachments (1)
Change History (3)
by , 8 years ago
Attachment: | Capture du 2016-11-09 16:42:50.png added |
---|
comment:1 by , 8 years ago
Summary: | Date[Time]RangeField postgres not rendering properly → Use a datepicker widget for Date[Time]RangeField in admin |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Bug → New feature |
It might be possible to use the datepicker widget, however, I'm not sure it's feasible to do at the moment without giving contrib.postgres
"special treatment" in contrib.admin
(see contrib/admin/widgets.py), which is certainly not ideal.
comment:2 by , 13 months ago
Cc: | added |
---|
This is the screenshot (same than the imgur link)