Skip to content

Commit 1e61f9b

Browse files
committed
fix #78
1 parent 489e90f commit 1e61f9b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

django_typer/management/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,6 +1708,7 @@ def _resolve_help(dj_cmd: "TyperCommand"):
17081708
elif (
17091709
dj_cmd.typer_app.info.help
17101710
and not dj_cmd.is_compound_command
1711+
and dj_cmd.typer_app.registered_commands
17111712
and not dj_cmd.typer_app.registered_commands[0].help
17121713
):
17131714
dj_cmd.typer_app.registered_commands[0].help = dj_cmd.typer_app.info.help

tests/settings/no_django_typer.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from .base import *
2+
3+
INSTALLED_APPS = [
4+
#"django_typer",
5+
"django.contrib.admin",
6+
"django.contrib.auth",
7+
"django.contrib.contenttypes",
8+
"django.contrib.sessions",
9+
"django.contrib.messages",
10+
"django.contrib.staticfiles",
11+
]

0 commit comments

Comments
 (0)