diff --git a/docs/models/index.md b/docs/models/index.md index 818a667..bba6966 100644 --- a/docs/models/index.md +++ b/docs/models/index.md @@ -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. -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. @@ -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 [alembic]: https://alembic.sqlalchemy.org/en/latest/tutorial.html [save status]: ../models/index/#model-save-status -[Internals]: ../models/internals.md \ No newline at end of file +[Internals]: ../models/internals.md