From fc28550fe4e0582952993976edc62971bd5345a8 Mon Sep 17 00:00:00 2001 From: Salvo Polizzi <101474753+salvo-polizzi@users.noreply.github.com> Date: Thu, 9 Jan 2025 17:00:29 +0100 Subject: Fixed #35515 -- Added automatic model imports to shell management command. Thanks to Bhuvnesh Sharma and Adam Johnson for mentoring this Google Summer of Code 2024 project. Thanks to Sarah Boyce, David Smith, Jacob Walls and Natalia Bidart for reviews. --- tests/shell/models.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/shell/models.py (limited to 'tests/shell/models.py') diff --git a/tests/shell/models.py b/tests/shell/models.py new file mode 100644 index 0000000000..85b40bf205 --- /dev/null +++ b/tests/shell/models.py @@ -0,0 +1,9 @@ +from django.db import models + + +class Marker(models.Model): + pass + + +class Phone(models.Model): + name = models.CharField(max_length=50) -- cgit v1.3