I have a table definition which reads like:
db.define_table('bedrijf',
Field(...),
...
Field('created_on',type='datetime'),
Field('modified_on',type='datetime'),
migrate='bedrijf.table')
db.bedrijf.created_on.default=request.now
db.bedrijf.modified_on.default=request.now
db.bedrijf.modified_on.update=request.now
In the database when I modify a record the modified_on fields isn't
updated, it remains set to the datatime it was created on. What is the
correct syntaxis to the modfied_on field updated.
Kind regards,
Annet.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.