I think you have mistake :

Field <http://web2py.com/book/default/docstring/Field>('tags','list:reference
tag'))


In that case "tag" is you table...

So when use list:reference you don't use the db.auth_user just "auth_user"

Also you don't specified the db.auth_user.username since username is not a
default field of auth_user and you maybe want to specified the
representation of the list:reference field since it is a integer and replace
it by the name or email of the user...

To do that you need to user .represent()

I let you read futher in the book..


Richard

On Mon, Oct 24, 2011 at 5:19 PM, Archibald Linx <[email protected]>wrote:

> Dear Web2py users,
>
> Do you sometimes use fields which are lists of usernames ?
>
> How would you write that : Field('usernames','list:reference
> db.auth_user.username')) ?
>
> Thanks a lot,
> Archibald

Reply via email to