Opened 8 years ago
Last modified 7 weeks 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, Ülgen Sarıkavak | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Pull Requests: | How to create a pull request | ||
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
According to the ticket's flags, the next step(s) to move this issue forward are:
- To provide a patch by sending a pull request. Claim the ticket when you start working so that someone else doesn't duplicate effort. Before sending a pull request, review your work against the patch review checklist. Check the "Has patch" flag on the ticket after sending a pull request and include a link to the pull request in the ticket comment when making that update. The usual format is:
[https://github.com/django/django/pull/#### PR]
.
Change History (4)
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 , 15 months ago
Cc: | added |
---|
comment:3 by , 7 weeks ago
Cc: | added |
---|
This is the screenshot (same than the imgur link)