How do I have unique field combinations in DAL?
So only one of each of these 2-tuples should be allowed:
db.define_table('foo',
Field('bar_id', db.bar, requires=IS_IN_DB(db, 'bar.id')),
Field('user_id', db.auth_user, default=auth.user_id, writable=False,
requires=IS_IN_DB(db, 'auth_user.id')),
)
Thanks for all suggestions,
Alec Taylor
--
---
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/groups/opt_out.