Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ellar_django/__init__.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions ellar_django/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand All @@ -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])