Skip to content

Commit afa3073

Browse files
committed
fix fallback
1 parent fa8b851 commit afa3073

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/django_typer/shells/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def source_vars(self) -> t.Dict[str, t.Any]:
197197
else "--no-color"
198198
if self.command.force_color
199199
else "",
200-
"fallback": f" --fallback {self.command.fallback_import}"
200+
"fallback": f"--fallback={self.command.fallback_import}"
201201
if self.command.fallback
202202
else "",
203203
"is_installed": self.is_installed,

src/django_typer/templates/shell_complete/powershell.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $scriptblock = {
2323
$arguments = @("{{ django_command }}") +
2424
@($settingsOption) +
2525
@($pythonPathOption) +
26-
@("--shell", "pwsh", "complete", $commandText, $cursorPosition) |
26+
@("--shell", "pwsh", "complete", "{{ fallback }}", $commandText, $cursorPosition) |
2727
Where-Object { $_ }
2828

2929
$results = & {{ manage_script_name }} @arguments 2>&1

0 commit comments

Comments
 (0)