On Thursday, May 10, 2012 8:36:18 PM UTC+10, rochacbruno wrote: > > db.define_table('nm', Field('a', notnull=True), Field('b', notnull=True), > Field('unikey', unique=True)) > > db.nm.unikey.compute = lambda row: row.a + row.b > Thanks, but that didn't work. I am able to push in multiple duplicates into the db.
- [web2py] Combination of fields must be unique Alec Taylor
- Re: [web2py] Combination of fields must be unique Bruno Rocha
- Re: [web2py] Combination of fields must be unique Anthony
- Re: [web2py] Combination of fields must be uniqu... Johann Spies
- Re: [web2py] Combination of fields must be unique Alec Taylor