I'm writing the API tests and when I use peewee function fn.Rand() I get this error:
cursor.execute(sql, params or ())
OperationalError: no such function: Rand
My code is:
query = Questions.select().order_by(fn.Rand()).limit(limit)
list = [ob.as_json() for ob in query]
Any ideia how to resolve?
Tks