def checksum_question(question, timestamp):
 challenge = u''.join((settings.SECRET_KEY, question, timestamp))
 sha = hashlib.sha1(challenge.encode(u'utf-8'))
 return sha.hexdigest()

def checksum_question ( question , timestamp ) : challenge = u'' . join ( ( settings . SECRET_KEY , question , timestamp ) ) sha = hashlib . sha1 ( challenge . encode ( u'utf-8' ) ) return sha . hexdigest ( )
returns checksum for a question .