I have two pretty basic tables: db.define_table('tiers', Field('name', 'string'), Field('created_on', 'datetime', default=request.now), format = '%(name)s')
db.define_table('metrics', Field('tier_id', 'reference tiers'), Field('total_count', 'integer'), Field('total_size', 'bigint'), Field('created_on', 'datetime', default=request.now)) I pre populated my tiers table with data. When I store data in my metrics table, I don't know off hand the tier_id. I know the tier name though. Is there a way I can use the tier name instead of the tier_id in this reference? -- 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.