When we call get_models() without the include_auto_created=True
argument, we will not display indexes that are auto-created by django.
It will only show the indexes that are explicitly defined by the user.
Call get_models() with include_auto_created=True
Looks good to me 👍
Looks good, but I'd move the tests to tests/regressiontests/admin_scripts/tests.py - its a bit of a monster file, but that is where all the admin script tests live currently - and it would be best not to create a brand new test app for this case. This is also worth a brief note in the release notes - while it would be an edge case, anyone doing anything automated with the output of those commands, could be surprised by the change in behavior.
Thanks, fix pushed in 8010289