core.management.get_indexes_for_model does not quote index names
|Reported by:||Owned by:||Adrian Holovaty|
|Component:||Core (Management commands)||Version:||master|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If you're model's column names require quoting, the chances are high that the auto-generated index names will also require quoting (this bit me with a column named "user@realm").
Without this patch,
manage.py sqlindexes (and the other functions which implicitly call
core.management.get_indexs_for_model) may generate invalid output.