On 27 Cze, 22:09, Hans Donner <hans.don...@pobox.com> wrote: > Have you tried the 'default' keyword for SQLField? > > SQLFIELD('add_date', 'datetime', default=<insert your default here>)? >
yes, I thought also about it. The problem is that it accepts datetime type (or what ever it is) not string i can only pass request.now to it - and if use crud.create.create() with such table it automaticly initialize the field - so if user waits some time with button clicking the value is not exacly the time of insertion. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@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 -~----------~----~----~----~------~----~------~--~---