开发者

how to use a custom calendar int he django backend?

开发者 https://www.devze.com 2023-03-03 18:08 出处:网络
I have a Date of bir开发者_开发技巧th field in my admin form of my django app. When a user has to select a date he must click back month by month. An old person has to click a lot (If born in 1970 and

I have a Date of bir开发者_开发技巧th field in my admin form of my django app. When a user has to select a date he must click back month by month. An old person has to click a lot (If born in 1970 and the calendar starts on 2011 for example).

Is there a way to select year by clicking on it? Or to load a difference calendar widget completely i.e. jquery-calendar? How can I do either of these?

Thanks.


If you're not happy with the default Django form widgets, any of the widgets, your recourse is to create your own or subclass and modify one of the existing. There's tons of posts online about this topic. As always, Google is your friend.

Specifically concerning jQuery Datepicker, I found this gist (updated), which might be helpful to you.

0

精彩评论

暂无评论...
验证码 换一张
取 消