I would like to define the following table with a non identical field value as a follower should not follow himself :
db.define_table('followers',
Field('follower',
db.auth_user,
requires=(db.subscription.follower != db.subscription.user)),
Field('user',
db.auth_user,
requires=(db.subscription.follower != db.subscription.user))
)
But I don't know how to implement it. Any hint ?
Thank you