next part of the docs and api documentation in beta ver
This commit is contained in:
@ -211,8 +211,8 @@ class QuerysetProxy(ormar.QuerySetProtocol):
|
||||
|
||||
List of related models is cleared before the call.
|
||||
|
||||
:raises: NoMatch if no rows are returned
|
||||
:raises: MultipleMatches if more than 1 row is returned.
|
||||
:raises NoMatch: if no rows are returned
|
||||
:raises MultipleMatches: if more than 1 row is returned.
|
||||
:param kwargs: fields names and proper value types
|
||||
:type kwargs: Any
|
||||
:return: returned model
|
||||
|
||||
@ -16,10 +16,11 @@ if TYPE_CHECKING: # pragma no cover
|
||||
|
||||
class RelationType(Enum):
|
||||
"""
|
||||
Different types of relations supported by ormar.
|
||||
ForeignKey = PRIMARY
|
||||
reverse ForeignKey = REVERSE
|
||||
ManyToMany = MULTIPLE
|
||||
Different types of relations supported by ormar:
|
||||
|
||||
* ForeignKey = PRIMARY
|
||||
* reverse ForeignKey = REVERSE
|
||||
* ManyToMany = MULTIPLE
|
||||
"""
|
||||
|
||||
PRIMARY = 1
|
||||
|
||||
Reference in New Issue
Block a user