- https://adamj.eu/tech/2025/04/07/django-whats-new-5.2/#automatic-model-imports-in-the-shell
The new How to customize the shell command (https://docs.djangoproject.com/en/5.2/howto/custom-shell) documentation page covers adding extra automatic imports by defining a custom shell command override.
Here’s an example that goes beyond the docs:
Thanks @adamchainz 🙏🏻