I have this validation
'f1': {'in': {'dbset': lambda db: db.where(db.A.f2 == session.f2)}}
In another way:
def val_f2(db):
print(session.f2)
return db.where(db.A.f2 == session.f2)
'f1': {'in': {'dbset': lambda db: val_f2(db)}}
The problem I have is that lambda runs only once and after that first time does not come to run, then it is always calling db.where from the first condition. I can check it with the print() that only runs once
Jose
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too