[Django] #35515: Auto-importing models feature for shell-command

57 views
Skip to first unread message

Django

unread,
Jun 9, 2024, 10:08:08 AM6/9/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo | Owner: Salvo Polizzi
Polizzi |
Type: New | Status: assigned
feature |
Component: Core | Version:
(Management commands) |
Severity: Normal | Keywords: shell
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
This would be an update of the existing Django shell that auto-imports
models for you from your app/project. Also, the goal would be to allow the
user to subclass this shell to customize its behavior and import extra
things.

- [https://code.djangoproject.com/wiki/SummerOfCode2024#Auto-
importingshell wiki]
- [https://gist.github.com/salvo-polizzi/304b8cd001e7ccef95e7f1d1b57bdea4
proposal]
--
Ticket URL: <https://code.djangoproject.com/ticket/35515>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 9, 2024, 10:11:22 AM6/9/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version:
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Salvo Polizzi):

* needs_better_patch: 0 => 1
* needs_docs: 0 => 1
* needs_tests: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:1>

Django

unread,
Jun 9, 2024, 11:55:51 AM6/9/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version:
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by David Smith):

* stage: Unreviewed => Accepted

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:2>

Django

unread,
Jun 12, 2024, 4:49:27 AM6/12/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Adam Johnson):

* version: => dev

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:3>

Django

unread,
Jun 27, 2024, 10:43:07 AM6/27/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce <42296566+sarahboyce@…>):

In [changeset:"dfac15d57048432fd8ad3dd189276d1ef304fc4c" dfac15d5]:
{{{#!CommitTicketReference repository=""
revision="dfac15d57048432fd8ad3dd189276d1ef304fc4c"
Fixed #35517, Refs #35515 -- Improved test coverage of shell command.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:4>

Django

unread,
Jul 22, 2024, 12:17:51 PM7/22/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Bhuvnesh):

* has_patch: 1 => 0
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:5>

Django

unread,
Jul 22, 2024, 12:17:59 PM7/22/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Bhuvnesh):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:6>

Django

unread,
Jul 22, 2024, 12:18:10 PM7/22/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Bhuvnesh):

* needs_docs: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:7>

Django

unread,
Jul 31, 2024, 7:07:14 AM7/31/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:8>

Django

unread,
Aug 1, 2024, 5:18:42 AM8/1/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Salvo Polizzi):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:9>

Django

unread,
Aug 1, 2024, 8:12:28 AM8/1/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:10>

Django

unread,
Aug 4, 2024, 1:53:57 PM8/4/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Salvo Polizzi):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:11>

Django

unread,
Aug 7, 2024, 9:35:13 AM8/7/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:12>

Django

unread,
Aug 7, 2024, 4:13:01 PM8/7/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Salvo Polizzi):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:13>

Django

unread,
Aug 10, 2024, 4:47:17 AM8/10/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce):

Discussion to decide on whether to have additional imports (and which
ones): https://forum.djangoproject.com/t/default-automatic-imports-in-the-
shell/33708
--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:14>

Django

unread,
Aug 12, 2024, 7:56:25 AM8/12/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

Comment:

Based off the discussion, it looks likely there will be additional imports
added
--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:15>

Django

unread,
Aug 12, 2024, 12:32:31 PM8/12/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin

Comment:

Agreed that the outcome of the discussion can be captured in a new ticket
and worked on later
--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:16>

Django

unread,
Aug 13, 2024, 3:32:03 AM8/13/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1
* stage: Ready for checkin => Accepted

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:17>

Django

unread,
Aug 14, 2024, 11:00:35 AM8/14/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:18>

Django

unread,
Aug 15, 2024, 1:58:50 AM8/15/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1
* stage: Ready for checkin => Accepted

Comment:

Want to make sure we're happy with what gets printed to the console
--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:19>

Django

unread,
Aug 16, 2024, 3:29:57 AM8/16/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Salvo Polizzi):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:20>

Django

unread,
Aug 16, 2024, 9:51:13 AM8/16/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:21>

Django

unread,
Oct 15, 2024, 10:36:53 AM10/15/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* stage: Ready for checkin => Accepted

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:22>

Django

unread,
Nov 14, 2024, 2:33:51 PM11/14/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Natalia Bidart):

Related ticket about extra coverage for the shell command: #35517
--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:23>

Django

unread,
Nov 17, 2024, 1:26:05 AM11/17/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner:
| Inzamamulhaq01
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Inzamamulhaq01):

* owner: Salvo Polizzi => Inzamamulhaq01

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:24>

Django

unread,
Nov 17, 2024, 1:26:49 AM11/17/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Inzamamulhaq01):

* owner: Inzamamulhaq01 => Salvo Polizzi

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:25>

Django

unread,
Nov 17, 2024, 1:27:19 AM11/17/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner:
| Inzamamulhaq01
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Inzamamulhaq01):

* owner: Salvo Polizzi => Inzamamulhaq01

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:26>

Django

unread,
Dec 12, 2024, 11:44:18 AM12/12/24
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

* needs_better_patch: 0 => 1

Comment:

Updating ticket based on recent conversations in the forum.
--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:24>

Django

unread,
Jan 8, 2025, 1:09:48 PMJan 8
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: shell | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:25>

Django

unread,
Jan 9, 2025, 11:00:48 AMJan 9
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: closed
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution: fixed
Keywords: shell | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"fc28550fe4e0582952993976edc62971bd5345a8" fc28550]:
{{{#!CommitTicketReference repository=""
revision="fc28550fe4e0582952993976edc62971bd5345a8"
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.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:26>

Django

unread,
Feb 10, 2025, 8:58:36 PMFeb 10
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: closed
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution: fixed
Keywords: shell | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by nessita <124304+nessita@…>):

In [changeset:"3839afb63ad5183cdf08e06e3a43a014ca4b7263" 3839afb]:
{{{#!CommitTicketReference repository=""
revision="3839afb63ad5183cdf08e06e3a43a014ca4b7263"
Refs #35515 -- Added missing docs for `--no-imports` flag for the shell
command.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:27>

Django

unread,
Feb 10, 2025, 8:58:37 PMFeb 10
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: closed
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution: fixed
Keywords: shell | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by nessita <124304+nessita@…>):

In [changeset:"0597e8ad1e55b565292ead732916aa0e39bdf37b" 0597e8ad]:
{{{#!CommitTicketReference repository=""
revision="0597e8ad1e55b565292ead732916aa0e39bdf37b"
Refs #35515 -- Fixed shell command verbose output when auto-importing 0 or
1 object.

Co-authored-by: Salvo Polizzi <salvopo...@gmail.com>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:29>

Django

unread,
Feb 10, 2025, 8:58:37 PMFeb 10
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: closed
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution: fixed
Keywords: shell | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by nessita <124304+nessita@…>):

In [changeset:"44ccd20375ba0d4da869ef994bc10a2311e9dc88" 44ccd203]:
{{{#!CommitTicketReference repository=""
revision="44ccd20375ba0d4da869ef994bc10a2311e9dc88"
Refs #35515 -- Refactored internal `get_and_report_namespace` in the shell
command.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:28>

Django

unread,
Feb 10, 2025, 9:00:11 PMFeb 10
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: closed
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution: fixed
Keywords: shell | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Natalia <124304+nessita@…>):

In [changeset:"7b0c587a68c2e486ccf8c967de55e0a66f8e5a2a" 7b0c587a]:
{{{#!CommitTicketReference repository=""
revision="7b0c587a68c2e486ccf8c967de55e0a66f8e5a2a"
[5.2.x] Refs #35515 -- Refactored internal `get_and_report_namespace` in
the shell command.

Backport of 44ccd20375ba0d4da869ef994bc10a2311e9dc88 from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:31>

Django

unread,
Feb 10, 2025, 9:00:11 PMFeb 10
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: closed
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution: fixed
Keywords: shell | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Natalia <124304+nessita@…>):

In [changeset:"0125bc15d4d0de9d92078dc17464bb749567ca99" 0125bc1]:
{{{#!CommitTicketReference repository=""
revision="0125bc15d4d0de9d92078dc17464bb749567ca99"
[5.2.x] Refs #35515 -- Added missing docs for `--no-imports` flag for the
shell command.

Backport of 3839afb63ad5183cdf08e06e3a43a014ca4b7263 from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:30>

Django

unread,
Feb 10, 2025, 9:00:11 PMFeb 10
to django-...@googlegroups.com
#35515: Auto-importing models feature for shell-command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
| Polizzi
Type: New feature | Status: closed
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution: fixed
Keywords: shell | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Natalia <124304+nessita@…>):

In [changeset:"16c7dc543c3a0e8a4c7554e36dd6166d5c12c872" 16c7dc5]:
{{{#!CommitTicketReference repository=""
revision="16c7dc543c3a0e8a4c7554e36dd6166d5c12c872"
[5.2.x] Refs #35515 -- Fixed shell command verbose output when auto-
importing 0 or 1 object.

Co-authored-by: Salvo Polizzi <salvopo...@gmail.com>

Backport of 0597e8ad1e55b565292ead732916aa0e39bdf37b from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35515#comment:32>
Reply all
Reply to author
Forward
0 new messages