xn-model 0.11.3__tar.gz → 0.11.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xn_model-0.11.3/xn_model.egg-info → xn_model-0.11.4}/PKG-INFO +1 -1
- {xn_model-0.11.3 → xn_model-0.11.4}/pyproject.toml +1 -3
- {xn_model-0.11.3 → xn_model-0.11.4}/x_model/models.py +1 -1
- {xn_model-0.11.3 → xn_model-0.11.4/xn_model.egg-info}/PKG-INFO +1 -1
- {xn_model-0.11.3 → xn_model-0.11.4}/.env.sample +0 -0
- {xn_model-0.11.3 → xn_model-0.11.4}/.gitignore +0 -0
- {xn_model-0.11.3 → xn_model-0.11.4}/.pre-commit-config.yaml +0 -0
- {xn_model-0.11.3 → xn_model-0.11.4}/README.md +0 -0
- {xn_model-0.11.3 → xn_model-0.11.4}/makefile +0 -0
- {xn_model-0.11.3 → xn_model-0.11.4}/setup.cfg +0 -0
- {xn_model-0.11.3 → xn_model-0.11.4}/tests/__init__.py +0 -0
- {xn_model-0.11.3 → xn_model-0.11.4}/tests/test_db.py +0 -0
- {xn_model-0.11.3 → xn_model-0.11.4}/x_model/__init__.py +0 -0
- {xn_model-0.11.3 → xn_model-0.11.4}/x_model/field.py +0 -0
- {xn_model-0.11.3 → xn_model-0.11.4}/x_model/func.py +0 -0
- {xn_model-0.11.3 → xn_model-0.11.4}/x_model/pydantic.py +0 -0
- {xn_model-0.11.3 → xn_model-0.11.4}/xn_model.egg-info/SOURCES.txt +0 -0
- {xn_model-0.11.3 → xn_model-0.11.4}/xn_model.egg-info/dependency_links.txt +0 -0
- {xn_model-0.11.3 → xn_model-0.11.4}/xn_model.egg-info/requires.txt +0 -0
- {xn_model-0.11.3 → xn_model-0.11.4}/xn_model.egg-info/top_level.txt +0 -0
|
@@ -4,9 +4,7 @@ requires-python = ">=3.12"
|
|
|
4
4
|
authors = [
|
|
5
5
|
{name = "Mike Artemiev", email = "mixartemev@gmail.com"},
|
|
6
6
|
]
|
|
7
|
-
dependencies = [
|
|
8
|
-
'tortoise-orm[accel,asyncpg]'
|
|
9
|
-
]
|
|
7
|
+
dependencies = ['tortoise-orm[accel,asyncpg]']
|
|
10
8
|
keywords = ["tortoise", "model", "crud", "generator", "api", "admin"]
|
|
11
9
|
description = 'Base model for xn-api'
|
|
12
10
|
readme = "README.md"
|
|
@@ -104,7 +104,7 @@ class Model(BaseModel):
|
|
|
104
104
|
|
|
105
105
|
@classmethod
|
|
106
106
|
def pyd(cls) -> type[PydanticModel]:
|
|
107
|
-
cls._pyd = cls._pyd or pydantic_model_creator(cls)
|
|
107
|
+
cls._pyd = cls._pyd or pydantic_model_creator(cls, name=cls.__name__)
|
|
108
108
|
return cls._pyd
|
|
109
109
|
|
|
110
110
|
@classmethod
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|