diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0fbadcd..ed720bf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,14 +14,14 @@ repos: name: Code Formatting entry: "make fmt" types: [python] - language_version: python3.8 + language_version: python3.10 language: python - id: code_linting args: [ ] name: Code Linting entry: "make lint" types: [ python ] - language_version: python3.8 + language_version: python3.10 language: python - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.3.0 diff --git a/ellar_django/__init__.py b/ellar_django/__init__.py index c479929..d1a7a7b 100644 --- a/ellar_django/__init__.py +++ b/ellar_django/__init__.py @@ -1,6 +1,6 @@ """Enables Django ORM and Admin feature in Ellar's application""" -__version__ = "1.0.2" +__version__ = "1.0.3" from .module import DjangoModule diff --git a/ellar_django/module.py b/ellar_django/module.py index d1d1b82..d4abbc2 100644 --- a/ellar_django/module.py +++ b/ellar_django/module.py @@ -17,7 +17,7 @@ async def _redirect_route(req: Request) -> RedirectResponse: return RedirectResponse(url=str(req.base_url)) -@Module() +@Module(commands=[django_command_wrapper]) class DjangoModule(IModuleSetup): @classmethod def setup(cls, settings_module: str, path_prefix: str = "/dj") -> "DynamicModule": @@ -27,4 +27,4 @@ def setup(cls, settings_module: str, path_prefix: str = "/dj") -> "DynamicModule mount = Mount( path_prefix, routes=[_router, Mount("/", app=get_asgi_application())] ) - return DynamicModule(cls, routers=[mount], commands=[django_command_wrapper]) + return DynamicModule(cls, routers=[mount])