Opened 13 months ago

Last modified 12 months ago

#27466 assigned New feature

Use a datepicker widget for Date[Time]RangeField in admin

Reported by: Adrien Brunet Owned by: prabod manuranga rathnayaka
Component: contrib.admin Version: 1.10
Severity: Normal Keywords: forms, admin, jquery, datepicker
Cc: 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 13 months ago.
This is the screenshot (same than the imgur link)

Download all attachments as: .zip

Change History (3)

Changed 13 months ago by Adrien Brunet

This is the screenshot (same than the imgur link)

comment:1 Changed 13 months ago by Tim Graham

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 Changed 12 months ago by prabod manuranga rathnayaka

Owner: changed from nobody to prabod manuranga rathnayaka
Status: newassigned
Note: See TracTickets for help on using tickets.
Back to Top