coloco 0.4.0__tar.gz → 0.4.3__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.
- {coloco-0.4.0 → coloco-0.4.3}/PKG-INFO +1 -1
- {coloco-0.4.0 → coloco-0.4.3}/pyproject.toml +1 -1
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/cli/api.py +1 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/db.py +2 -3
- {coloco-0.4.0 → coloco-0.4.3}/LICENSE +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/README.md +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/__init__.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/__main__.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/api.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/app.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/cli/build.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/cli/createapp.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/cli/db.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/cli/dev.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/cli/node.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/cli/package.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/cli/serve.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/codegen.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/config.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/dependencies.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/exceptions.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/lifespan.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/static.py +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/docker/.dockerignore-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/docker/Dockerfile-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/docker/docker-compose.yml-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/+app/404.svelte-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/+app/app.css-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/+app/app.svelte-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/+app/index.html-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/+app/index.svelte-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/+app/main.ts-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/+node/openapi-ts.config.ts-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/+node/package.json-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/+node/svelte.config.js-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/+node/tsconfig.json-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/+node/vite-env.d.ts-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/+node/vite.config.ts-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/.gitignore-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/README.md-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/example/api.py-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/example/index.svelte-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/main.py-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/pyproject.toml-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/src/coloco/templates/standard/tsconfig.json-tpl +0 -0
- {coloco-0.4.0 → coloco-0.4.3}/tests/__init__.py +0 -0
|
@@ -5,8 +5,7 @@ from functools import wraps
|
|
|
5
5
|
from .lifespan import register_lifespan
|
|
6
6
|
from rich import print
|
|
7
7
|
from type_less import replace_type_hint_map_deep
|
|
8
|
-
from typing import
|
|
9
|
-
from pydantic import ConfigDict
|
|
8
|
+
from typing import TypeVar
|
|
10
9
|
|
|
11
10
|
|
|
12
11
|
CLS = TypeVar("CLS")
|
|
@@ -89,7 +88,7 @@ def inject_model_serializers(orm_config: dict, routes: list[ColocoRoute]):
|
|
|
89
88
|
Tortoise.table_name_generator = app_class_to_table_name
|
|
90
89
|
for label, _app in orm_config["apps"].items():
|
|
91
90
|
for model in _app["models"]:
|
|
92
|
-
Tortoise.init_models([model], label)
|
|
91
|
+
Tortoise.init_models([model], label, _init_relations=False)
|
|
93
92
|
|
|
94
93
|
# Auto-create serializers
|
|
95
94
|
# TODO: configurable
|
|
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
|
|
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
|
|
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
|