A simpler fix for the edit/add functions is to specify a format in the model:

db.dog.sire_id.requires = IS_EMPTY_OR(IS_IN_DB(db, 'dog.id', '%(name)s'))

(Hmm ... suspect I had that there before at some stage which, but edited the format away when I was trying to pin down the other problems - oops). Anyway, thanks for the help!

Mark

On 05/02/12 22:23, Mark Kirkwood wrote:
*But*... now the edit drop down list is showing id's instead of names... scratches head I'm sure that *was* working before....


Reply via email to