Haven't tested this, but this is something I would try:
db.auth_user.id.represent = lambda row: row.first_name + row.last_name
________________________________________
Kiran Subbaraman
http://subbaraman.wordpress.com/about/
On Wed, 18-03-2015 6:03 PM, Moiz Nagpurwala wrote:
Hello,
I want to change the represent of auth_user in such a way that it does
not show the id of user with her name.
e.g. instead of displaying "User name (1)" I only want to display
"User name" (without quotes).
Thanks.
--
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 [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.