Field('registration_time', 'datetime') is you want the user to fill it in:

Field('registration_time', 'datetime', default=request.now, writable=False, 
readable=False)

to make it automatic.

On Friday, 16 November 2012 15:44:17 UTC-6, Daniele wrote:
>
> Guys I'm wondering when I get someone to register, I'd like to have a 
> field in my database for the datetime.
> In my db.py file, I have a Field('registration_time', 'datetime')
>
> However, how do I pass in that the time (now) is supposed to be taken when 
> the user submits the form?? I'm a bit confused about this.
>
> Thanks!
>

-- 



Reply via email to