Skip to content

Commit b664d86

Browse files
authored
Merge pull request #12 from python-ellar/fix_broken_module
fixed broken module
2 parents 8335a9f + f19dad3 commit b664d86

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ repos:
1414
name: Code Formatting
1515
entry: "make fmt"
1616
types: [python]
17-
language_version: python3.8
17+
language_version: python3.10
1818
language: python
1919
- id: code_linting
2020
args: [ ]
2121
name: Code Linting
2222
entry: "make lint"
2323
types: [ python ]
24-
language_version: python3.8
24+
language_version: python3.10
2525
language: python
2626
- repo: https://github.com/pre-commit/pre-commit-hooks
2727
rev: v2.3.0

ellar_django/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Enables Django ORM and Admin feature in Ellar's application"""
22

3-
__version__ = "1.0.2"
3+
__version__ = "1.0.3"
44

55
from .module import DjangoModule
66

ellar_django/module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async def _redirect_route(req: Request) -> RedirectResponse:
1717
return RedirectResponse(url=str(req.base_url))
1818

1919

20-
@Module()
20+
@Module(commands=[django_command_wrapper])
2121
class DjangoModule(IModuleSetup):
2222
@classmethod
2323
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
2727
mount = Mount(
2828
path_prefix, routes=[_router, Mount("/", app=get_asgi_application())]
2929
)
30-
return DynamicModule(cls, routers=[mount], commands=[django_command_wrapper])
30+
return DynamicModule(cls, routers=[mount])

0 commit comments

Comments
 (0)