This worked for me too. Took me awhile to find this thread because I was searching for "reference same table". Hopefully writing this will help others searching the same way I was.
On Thursday, February 2, 2012 at 10:28:43 PM UTC-8, Edward Shave wrote: > > Found this works following definition.... > > db.account.transfer.requires = IS_IN_DB(db,db.account.id,'%(name)s') > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.