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)

Capture du 2016-11-09 16:42:50.png (138.3 KB ) - added by Adrien Brunet 8 years ago.
This is the screenshot (same than the imgur link)

Download all attachments as: .zip

Change History (3)

by Adrien Brunet, 8 years ago

This is the screenshot (same than the imgur link)

comment:1 by Tim Graham, 8 years ago

Summary: Date[Time]RangeField postgres not rendering properlyUse a datepicker widget for Date[Time]RangeField in admin
Triage Stage: UnreviewedAccepted
Type: BugNew 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 Tom Carrick, 13 months ago

Cc: Tom Carrick added
Note: See TracTickets for help on using tickets.
Back to Top