Skip to content

Commit 68ecb40

Browse files
anxkhntiangolo
andauthored
📝 Fix "Decimals in SQLModel" to reference Field() instead of condecimal() (#2035)
Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com> Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 parent 198b763 commit 68ecb40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/advanced/decimal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ For the database, **SQLModel** will use [SQLAlchemy's `DECIMAL` type](https://do
3131

3232
## Decimals in SQLModel
3333

34-
Let's say that each hero in the database will have an amount of money. We could make that field a `Decimal` type using the `condecimal()` function:
34+
Let's say that each hero in the database will have an amount of money. We can define that field as a `Decimal` and configure the maximum number of digits and decimal places using the parameters of `Field()`:
3535

3636
{* ./docs_src/advanced/decimal/tutorial001_py310.py ln[1:11] hl[11] *}
3737

0 commit comments

Comments
 (0)