for now revert type changes to avoid mypy errors, add validation for through models, clean docs etc

This commit is contained in:
collerek
2021-03-05 12:02:41 +01:00
parent 4e27f07a7e
commit 8682427910
4 changed files with 73 additions and 24 deletions

View File

@ -29,9 +29,10 @@
* you can include and exclude fields on through models
* through models are attached only to related models (i.e. if you query from A to B -> only on B)
* note that through models are explicitly loaded without relations -> relation is already populated in ManyToMany field.
* note that just like before you cannot declare the relation fields on through model, they will be populated for you by `ormar`
* note that just like before you cannot declare the relation fields on through model, they will be populated for you by `ormar`,
but now if you try to do so `ModelDefinitionError` will be thrown
* check the updated ManyToMany relation docs for more information
# Other
* Updated docs and api docs
* Refactors and optimisations mainly related to filters, exclusions and order bys