
上QQ阅读APP看书,第一时间看更新
Using a float field with configurable precision
When using float fields, we may want to let the end user configure the precision that is to be used. The Decimal Precision Configuration module addon provides this ability.
We will add a Cost Price field to the Library Book model, with a user-configurable number of digits.