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! -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.