If the modified_on field shown in the form? It should not be
db.bedrijf.modified_on.readable=False
db.bedrijf.modified_on.writable=False

Does this fix the problem?


On Nov 29, 9:11 am, annet <annet.verm...@gmail.com> wrote:
> 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 web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to