Commit 44913e1
authored
Returning `None` is the documented way to permanently disable automatic imports.
https://docs.djangoproject.com/en/5.2/howto/custom-shell/#customizing-shell-auto-imports
There is also specific handling of `None` within Django's `shell` management command.
https://github.com/django/django/blob/5.2.9/django/core/management/commands/shell.py#L170-L172
1 parent a579836 commit 44913e1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
0 commit comments