How can I program multiple drop-down menus at one time by Django?

ยอดดู 3 ครั้ง
ข้ามไปที่ข้อความที่ยังไม่อ่านรายการแรก

Boyle Yang

ยังไม่อ่าน,
19 ก.ค. 2553 02:04:5219/7/53
ถึง django...@googlegroups.com
Hello list,
   
    I am a new Djangoer. I am trying to program three drop-down menus in form of Django like the attachment at one
 
time . How can I do?
 
Thanks very much!
 
Boyle Yang
birthday.bmp

vjimw

ยังไม่อ่าน,
19 ก.ค. 2553 09:51:5819/7/53
ถึง Django users
I think you would want to make a custom widget for the birthday field
in your model.
http://docs.djangoproject.com/en/dev/ref/forms/widgets/#customizing-widget-instances

You can then set up your form instance to use this widget, which would
include the three drop downs to make a birthdate selector.
>  birthday.bmp
> 51KViewDownload

Boyle Yang

ยังไม่อ่าน,
19 ก.ค. 2553 11:18:5919/7/53
ถึง django...@googlegroups.com
Thanks very much!  This is solved by SelectDateWidget.
 
Boyle Yang
2010/7/19 vjimw <im.a.mac...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


ตอบทุกคน
ตอบกลับผู้สร้าง
ส่งต่อ
ข้อความใหม่ 0 รายการ