Hello everyone,
Since the grid update, the reference table has stopped working.
Instead of showing the table reference field, it shows the ID field.
Example:
db.define_table(
'job',
Field('job'),
format='%(job)s')
db.define_table(
'person',
Field('superhero'),
Field('name'),
Field('job_id', 'reference job')
)
@action('index', method=['POST', 'GET'])
@action.uses('grid.html', db)
def index():
grid = Grid(query=db.person,
orderby=[db.person.name]
)
return dict(grid=grid)
It shows 'job_id' instead of 'job'.
Regards,