Check out http://web2py.com/book/default/chapter/06#Record-Representation. 
Perhaps the format argument of the image table is set to %(title)s, which 
will display the title of the referenced image record rather than the id in 
dropdowns and tables.

Anthony

On Saturday, October 22, 2011 12:40:41 AM UTC-4, Paul wrote:
>
> When I use appadmin to display the COMMENT table, the comment.image_id 
> field displays the title field from the image table.
>
> Looking in sql.log, I see that comment.image_id is an integer referencing 
> image.id.
>
>     image_id INTEGER REFERENCES image(id) ON DELETE CASCADE,
>
> I was expecting to see the integer id value, but the text of the title field 
> is displayed.
>
> How/why does the comment.image_id field display the text of title? What in 
> db.py connects those two?
>
>

Reply via email to