2👍
✅
For anyone finding its way from Google – seems Django 1.11 allows you now to have a custom name for indexes. Following the documentation as described here:
Index.name
The name of the index. If name isn’t provided Django will auto-generate a name. For compatibility with different databases, index names cannot be longer than 30 characters and shouldn’t start with a number (0-9) or underscore (_).
0👍
There is no way of customizing the name for indexes as these are generated by hashing (the index name calculation uses some hashing techniques)
- [Answered ]-When does Django ImageKit create the thumbnail file?
- [Answered ]-Cannot server static files with nginx in django
- [Answered ]-Django Slugfield removing articles ('the', 'a', 'an', 'that')
- [Answered ]-Combining two columns into one using django_tables2
- [Answered ]-How to make pylint recognize variable via astroid
Source:stackexchange.com