fix json to bytes when bulk-create

This commit is contained in:
huangsong
2022-01-18 15:45:15 +08:00
parent 6ec4825b67
commit 02df4300dd
3 changed files with 10 additions and 1 deletions

View File

@ -42,6 +42,7 @@ class ToDo(ormar.Model):
id: int = ormar.Integer(primary_key=True)
text: str = ormar.String(max_length=500)
completed: bool = ormar.Boolean(default=False)
pairs: List[str] = ormar.JSON(default=[])
class Category(ormar.Model):