switch to decorator used to register property_fields and save it on Meta inner class to expose to cloned fastapi models
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
from ormar.decorators import property_field
|
||||
from ormar.exceptions import ModelDefinitionError, ModelNotSet, MultipleMatches, NoMatch
|
||||
from ormar.protocols import QuerySetProtocol, RelationProtocol # noqa: I100
|
||||
from ormar.fields import ( # noqa: I100
|
||||
@ -58,4 +59,5 @@ __all__ = [
|
||||
"QuerySetProtocol",
|
||||
"RelationProtocol",
|
||||
"ModelMeta",
|
||||
"property_field",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user