> the issue I am pointing to is related to the display of the "owner_id" > values in the grid itself and > yes, my *real* code sets the "requires" attribute directly in the "thing" > table definition rather than after the fact as shown above, I didn't think > that this would make a difference, sorry about that... >
No problem -- it's not obvious (though it's always best to show exact code, because there can be subtle differences). How it works is that if you define a reference field and do not specify any "requires" attribute, you get both a default IS_IN_DB validator for the "requires" attribute *and* a default "represent" attribute based on the referenced table's _format attribute (if it has a _format attribute). If you manually specify your own "requires" attribute within the Field() definition, you then get neither the default IS_IN_DB validator nor the default "represent" attribute. Perhaps we should not make these dependent on each other, as this often leads to confusion. 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

