Add missing parentheses to get_pydantic call (#1344)

This commit is contained in:
Chaoying
2024-06-09 20:37:01 +08:00
committed by GitHub
parent 5a7478bca5
commit fbde81146a

View File

@ -318,7 +318,7 @@ class Item(ormar.Model):
You can generate pydantic models out of it with a one simple call. You can generate pydantic models out of it with a one simple call.
```python ```python
PydanticCategory = Category.get_pydantic(include={"id", "name"} PydanticCategory = Category.get_pydantic(include={"id", "name"})
``` ```
Which will generate model equivalent of: Which will generate model equivalent of: