Hello everyone, I was trying to do a validation in db.py like:
db.define_table('poll',
SQLField('question', 'text', requires=[IS_NOT_EMPTY(),
IS_NOT_IN_DB(db(db.poll.author == user_id), 'poll.question',
error_message = 'Question already existed!')], length=120)
SQLField('author', db.auth_user, default=user_id, readable=False,
writable=False))
but instead of checking if the same guy has post the same question, it
gives me an error. Is there anything wrong with my code? Many thanks!!
Cheers,
Zhe

