Correct spelling mistakes (#1163)
Co-authored-by: collerek <collerek@gmail.com>
This commit is contained in:
@ -28,7 +28,7 @@ class PrefetchQueryMixin(RelationMixin):
|
||||
|
||||
:param parent_model: related model that the relation lead to
|
||||
:type parent_model: Type[Model]
|
||||
:param target_model: model on which query should be perfomed
|
||||
:param target_model: model on which query should be performed
|
||||
:type target_model: Type[Model]
|
||||
:param reverse: flag if the relation is reverse
|
||||
:type reverse: bool
|
||||
|
||||
@ -64,7 +64,7 @@ class NewBaseModel(pydantic.BaseModel, ModelTableProxy, metaclass=ModelMetaclass
|
||||
Constructed with ModelMetaclass which in turn also inherits pydantic metaclass.
|
||||
|
||||
Abstracts away all internals and helper functions, so final Model class has only
|
||||
the logic concerned with database connection and data persistance.
|
||||
the logic concerned with database connection and data persistence.
|
||||
"""
|
||||
|
||||
__slots__ = (
|
||||
|
||||
@ -223,7 +223,7 @@ class Query:
|
||||
|
||||
:param expr: select expression before clauses
|
||||
:type expr: sqlalchemy.sql.selectable.Select
|
||||
:return: expresion with all present clauses applied
|
||||
:return: expression with all present clauses applied
|
||||
:rtype: sqlalchemy.sql.selectable.Select
|
||||
"""
|
||||
expr = FilterQuery(filter_clauses=self.filter_clauses).apply(expr)
|
||||
|
||||
@ -926,7 +926,7 @@ class QuerySet(Generic[T]):
|
||||
|
||||
async def get_or_none(self, *args: Any, **kwargs: Any) -> Optional["T"]:
|
||||
"""
|
||||
Get's the first row from the db meeting the criteria set by kwargs.
|
||||
Gets the first row from the db meeting the criteria set by kwargs.
|
||||
|
||||
If no criteria set it will return the last row in db sorted by pk.
|
||||
|
||||
@ -947,7 +947,7 @@ class QuerySet(Generic[T]):
|
||||
|
||||
async def get(self, *args: Any, **kwargs: Any) -> "T": # noqa: CCR001
|
||||
"""
|
||||
Get's the first row from the db meeting the criteria set by kwargs.
|
||||
Gets the first row from the db meeting the criteria set by kwargs.
|
||||
|
||||
If no criteria set it will return the last row in db sorted by pk.
|
||||
|
||||
|
||||
@ -361,7 +361,7 @@ class QuerysetProxy(Generic[T]):
|
||||
|
||||
async def get_or_none(self, *args: Any, **kwargs: Any) -> Optional["T"]:
|
||||
"""
|
||||
Get's the first row from the db meeting the criteria set by kwargs.
|
||||
Gets the first row from the db meeting the criteria set by kwargs.
|
||||
|
||||
If no criteria set it will return the last row in db sorted by pk.
|
||||
|
||||
@ -386,7 +386,7 @@ class QuerysetProxy(Generic[T]):
|
||||
|
||||
async def get(self, *args: Any, **kwargs: Any) -> "T":
|
||||
"""
|
||||
Get's the first row from the db meeting the criteria set by kwargs.
|
||||
Gets the first row from the db meeting the criteria set by kwargs.
|
||||
|
||||
If no criteria set it will return the last row in db sorted by pk.
|
||||
|
||||
@ -523,7 +523,7 @@ class QuerysetProxy(Generic[T]):
|
||||
"""
|
||||
Combination of create and get methods.
|
||||
|
||||
Tries to get a row meeting the criteria fro kwargs
|
||||
Tries to get a row meeting the criteria for kwargs
|
||||
and if `NoMatch` exception is raised
|
||||
it creates a new one with given kwargs and _defaults.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user