Opened 10 years ago

Last modified 11 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, Ülgen Sarıkavak, Terry Smith 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 10 years ago.
This is the screenshot (same than the imgur link)

Download all attachments as: .zip

Change History (5)

by Adrien Brunet, 10 years ago

This is the screenshot (same than the imgur link)

comment:1 by Tim Graham, 10 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 Tom Carrick, 3 years ago

Cc: Tom Carrick added

comment:3 by Ülgen Sarıkavak, 22 months ago

Cc: Ülgen Sarıkavak added

comment:4 by Terry Smith, 11 months ago

Cc: Terry Smith added
Note: See TracTickets for help on using tickets.
Back to Top