Hi Eric,  Thanks for your interest.  I believe that this is a bug in 
IS_IN_DB validator.  I am surprised that more users have not reported it.   
Try this to replicate.

1. Make a new app.
2. Paste this at the bottom of models/db.py


db.define_table('tag',
    Field('name'),
    Field('descr',length=50),
    format='%(name)s',
    )
    
db.define_table('docstore',
    Field('name'),
    Field('tags','list:reference tag'), 
    )   
    
if not db(db.tag.id>0).count():
    db.tag.insert( name = "A",  descr = "A Descr" )     
    db.tag.insert( name = "B",  descr = "B Descr" )     
    db.tag.insert( name = "C",  descr = "C Descr" )     


Use Appadmin to add a record to docstore table.


-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to