MCPcopy
hub / github.com/ormar-orm/ormar / model

Method model

ormar/queryset/queryset.py:92–101  ·  view source on GitHub ↗

Shortcut to model class set on QuerySet. :return: model class :rtype: type[Model]

(self)

Source from the content-addressed store, hash-verified

90
91 @property
92 def model(self) -> type["T"]:
93 """
94 Shortcut to model class set on QuerySet.
95
96 :return: model class
97 :rtype: type[Model]
98 """
99 if not self.model_cls: # pragma nocover
100 raise ValueError("Model class of QuerySet is not initialized")
101 return self.model_cls
102
103 def rebuild_self( # noqa: CFQ002
104 self,

Callers 1

createMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected