db.tablename.author.default = auth.user.id

-Thadeus




On Mon, Oct 26, 2009 at 10:17 PM, Wiiboy <[email protected]> wrote:

>
> How would I make a field in my DB a reference to a auth_user?
>
> Wouldn't it be:
> Field("author", db.auth_user, default=auth.user)
>
> ?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to