fix scale and precision in decimal

This commit is contained in:
collerek
2020-10-31 18:42:13 +01:00
parent 3c10892db7
commit 79cf225ddc
6 changed files with 17 additions and 17 deletions

View File

@ -44,7 +44,7 @@ class Item(ormar.Model):
id = ormar.Integer(primary_key=True)
name = ormar.String(max_length=100)
category= ormar.ForeignKey(Category, nullable=True)
category = ormar.ForeignKey(Category, nullable=True)
@app.get("/items/", response_model=List[Item])