Suport Date, DateTime and Decimal fields in Greater/Less Pyson statement
The Greater/Less Pyson statements have the limitation to only accept int/long/float fields (pyson.py#L316).
It should accept also Date and DateTime fields.
I found this limitation trying to put this pyson statement in a field context:
'stock_move_date': max(Eval('planned_date', Date()), Eval('effective_date', Date()))
Files
Download | Creator | Timestamp | Type |
---|---|---|---|
pyson.diff | @amon-ra | 2017-08-18 08:34:25.089000 UTC | text/plain |