Fix typo
This commit is contained in:
committed by
GitHub
parent
14b170097c
commit
41a846bc1f
@ -396,7 +396,7 @@ You can set this parameter by providing `Meta` class `constraints` argument.
|
|||||||
|
|
||||||
As each `ormar.Model` is also a `pydantic` model, you might want to tweak the settings of the pydantic configuration.
|
As each `ormar.Model` is also a `pydantic` model, you might want to tweak the settings of the pydantic configuration.
|
||||||
|
|
||||||
The way to do this in pydantic is to adjust the settings on the `Config` class provided to your model, and it works exactly the same for ormer.Models.
|
The way to do this in pydantic is to adjust the settings on the `Config` class provided to your model, and it works exactly the same for ormar models.
|
||||||
|
|
||||||
So in order to set your own preferences you need to provide not only the `Meta` class but also the `Config` class to your model.
|
So in order to set your own preferences you need to provide not only the `Meta` class but also the `Config` class to your model.
|
||||||
|
|
||||||
@ -526,4 +526,4 @@ You can check if model is saved with `ModelInstance.saved` property
|
|||||||
[sqlalchemy table creation]: https://docs.sqlalchemy.org/en/13/core/metadata.html#creating-and-dropping-database-tables
|
[sqlalchemy table creation]: https://docs.sqlalchemy.org/en/13/core/metadata.html#creating-and-dropping-database-tables
|
||||||
[alembic]: https://alembic.sqlalchemy.org/en/latest/tutorial.html
|
[alembic]: https://alembic.sqlalchemy.org/en/latest/tutorial.html
|
||||||
[save status]: ../models/index/#model-save-status
|
[save status]: ../models/index/#model-save-status
|
||||||
[Internals]: ../models/internals.md
|
[Internals]: ../models/internals.md
|
||||||
|
|||||||
Reference in New Issue
Block a user