Skip to content

Commit 7bf6e06

Browse files
authored
Fixed dummy model. (#176)
1 parent e650ff7 commit 7bf6e06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fastapi_template/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ def checker(ctx: BuilderContext) -> bool:
380380
code="add_dummy",
381381
cli_name="dummy",
382382
user_view="Add dummy model",
383+
is_hidden=lambda ctx: ctx.orm == "none",
383384
description=(
384385
"This option creates {what} as an example of how to use chosen ORM.\n"
385386
"Also this option will generate you an example of {dao}.".format(

0 commit comments

Comments
 (0)