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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xn-model
3
- Version: 0.11.3
3
+ Version: 0.11.4
4
4
  Summary: Base model for xn-api
5
5
  Author-email: Mike Artemiev <mixartemev@gmail.com>
6
6
  License: MIT
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xn-model
3
- Version: 0.11.3
3
+ Version: 0.11.4
4
4
  Summary: Base model for xn-api
5
5
  Author-email: Mike Artemiev <mixartemev@gmail.com>
6
6
  License: MIT
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