sramana/web2py-instant-admin — Issue #6: web2py-instant-admin assumes id column in tables
Author: davidthewatson
Created: 2011-12-06 21:26:28+00:00
State: open

My app has legacy tables that are used in the model but do not have an id column. Instant admin crashes with the following:

InternalError: (1054, u"Unknown column 'whatever.id' in 'where clause'")

I would recommend catching and logging this error, but not crashing. It would be better to skip the field or table completely.