I can't seem to get the date widget to work.

Using the following with crud.create still leaves me without a date widget, 
even though I've been overly explicit:

db.define_table(
    'dob',
    Field('user_id', db.auth_user, unique=True, default=auth.user_id, 
readable=False, writable=False),
    Field('DOB', 'date', requires=IS_DATE_IN_RANGE(minimum=date(1920,1,1)), 
label=T('D.O.B.'), widget=SQLFORM.widgets.date.widget),

)


How do I get this to work?


Thanks for all suggestions,


Alec Taylor


FYI: I'm using a custom scaffolding layout, so might not be including the right 
JS. What JS should I be including for this?

-- 



Reply via email to