From 41a846bc1fd6dcd009d54688a3b5a69c63067f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Lilleb=C3=B8=20Gundersen?= Date: Sun, 19 Sep 2021 21:46:29 +0200 Subject: [PATCH] Fix typo --- docs/models/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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