On Friday, March 11, 2016 at 2:36:14 PM UTC-5, David Orme wrote: > > That is exactly what I was looking for. I don't know how it compares for > performance with the record id query, but it makes for very clean code, and > the fact that it exposes the reference table fields is very neat. >
Your solution involved two queries (one to re-retrieve the record that was just updated, and a second to retrieve the referenced db.auth_user record), and this solution involves only one (just the db.auth_user lookup). There is no way to avoid this one query, as the original edit form includes only the db.help_offered record, not the db.auth_user record. Anthony -- 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.