Thanks for your replies guys!

Anthony, when I deleted the update value, it stored a NULL value instead. 
Does it mean I need to enter it manually? Or is there an easy fix to this?

Den måndag 16 november 2015 kl. 13:30:44 UTC+1 skrev Anthony:
>
> The update attribute works only if no value is submitted with the update. 
> However, in appadmin, the writable attribute is ignored, so the current 
> value appears in the update form and is therefore submitted with the rest 
> of the record, resulting in the current value being retained. Try deleting 
> the value from the update form and then submitting.
>
> Anthony
>
> On Monday, November 16, 2015 at 5:10:40 AM UTC-5, Robin Manoli wrote:
>>
>> Hey,
>> I have the following field on some tables:
>>
>>
>> *Field( 'updated_at', 'datetime', update=request.utcnow, writable=False, 
>> readable=False )*
>> I want it to keep track of the last update of a row. It however remains 
>> with the created_at value.
>>
>> I think this has worked before. Can the problem be that I'm now using 
>> appadmin?
>>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to