#36103: Simplify get_namespace() and adjust get_and_report_namespace() method
signature for automatic imports in Shell command
-------------------------------------+-------------------------------------
Reporter: Salvo Polizzi | Owner: Salvo
Type: | Polizzi
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: 5.2
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Salvo Polizzi):
Replying to [comment:2 Natalia Bidart]:
> Thank you Salvo for this ticket, I overall agree except for the
`no_imports`, I have no problem to remove it from
`get_and_report_namespace` but we should do it in a way that does not
duplicate logic/checks. Thank you!
Maybe we can wait until someone has other better ideas for the
`no_imports` and in the meantime stick with this implementation, e.g.
leave it as a parameter.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36103#comment:4>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.