I need to track the date/time of the last change to one field in a row.
Example:
Field('f_status', type='text',
label=T('Status'), requires=IS_IN_SET(['status1', 'status2',
'status3'])),
Field('f_status_change_dt', type='datetime',
label=T('Status Change Dt')),
where 'status_change_dt' would be automatically be set to the current
date/time whenever the value of the 'status' field changed.
I could do this in my own app code, but I was hoping for something in the
model so that it happens in the web2py admin, or any other apps that use
this model as well.
Thanks.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.