Keep in mind, that 
'reference ....' - realized at DB-level as FK-constraint, web2py allows to 
define reference to PK only (you try to refer to not-PK field) 
requires=...   - just web2py validator  and has no effect on underlying DB 
and there isn't an autovalidation of DB manipulation from code (except 
form.process()/validate()/accepts() ).  I mean  db.bursary_entries.insert( 
barcode  = 'invalid value') - doesn't cause any error

On Saturday, October 15, 2016 at 1:14:13 PM UTC+3, James Booth wrote:
> Okay, that seems to work fine, I guess I just tried to implement into 
> incorrectly. Thanks for your help!

- (Documentation)
- (Source code)
- (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 
For more options, visit

Reply via email to