I have the following field definition:
Field('unit_price', 'decimal(8,4)', label=T('Price'),represent=lambda val,row:
'{:8.2f}'.format(val),requires=IS_DECIMAL_IN_RANGE(0, 10000,
dot=","),default=0, writable=True,readable=True),
This field shows as it should (with only 2 decimals) in the grid display.
However when editing a grid row, this field shows with 4 decimal digits.
Any idea ?
Thanks
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.