﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19806	django_bash_completion clobbers upstream completion of ‘python’	Anders Kaseorg		"`extras/django_bash_completion` now tries to complete `python manage.py` in addition to `./manage.py` (#12174), but this results in the upstream completion hook for `python` being entirely clobbered.  For example, the upstream hook completes `python -Q`, but this is lost when loading `django_bash_completion`:

{{{
$ python -Q <TAB>
new      old      warn     warnall  
$ . extras/django_bash_completion 
$ python -Q <TAB>
AUTHORS           .git/             LICENSE           setup.py
CONTRIBUTING.rst  .gitattributes    MANIFEST.in       tests/
django/           .gitignore        README.rst        .tx/
docs/             .hgignore         scripts/
extras/           INSTALL           setup.cfg
}}}

That seems like a really unfriendly thing to do, especially on Linux distros where merely installing the Django package pulls in `django_bash_completion` automatically.

I don’t know of a way to install a completion hook for `python manage.py` without clobbering all of `python`, so I would propose that the second half of the script (starting at `_python_django_completion`) should be deleted entirely.  Users who want bash completion can type `./manage.py` or `django-admin` instead."	Bug	new	Core (Management commands)	1.4	Normal				Accepted	1	0	1	0	0	0
