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 Em 10/05/2012 02:46, "Alec Taylor" <alec.tayl...@gmail.com> escreveu: > E.g.: For a letter to be unique and identifiable it needs unique(location > && name) > > How do I make a requirement that a combination of fields must be unique? > > Thanks for all information, > > Alec Taylor >