Did you try
Field.Virtual('area_name', lambda row: db.area(row.area_id).name),
?
--
---
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...@goog
Hi, I have this table
db.define_table('station',
dates,
Field('name', 'string', unique=True),
Field('average_time', 'integer'),
Field('area_id', 'reference area', requires=IS_IN_DB(db,
'area.id', '%(name)s') ,label="Area", represent=
2 matches
Mail list logo