summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAkshesh <aksheshdoshi@gmail.com>2016-08-16 12:09:03 +0530
committerTim Graham <timograham@gmail.com>2016-08-16 09:11:33 -0400
commita71724cd04e6b2b0c97f1cdbea2e528e65373be3 (patch)
tree9f8e2df288afa250f110f7cf7113c1c9eeca55ae /django
parent7c9bd07f6957c888daad9565fc05fd8c2eb78f31 (diff)
Refs #26709 -- Added index name to AddIndex.describe().
Diffstat (limited to 'django')
-rw-r--r--django/db/migrations/operations/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/db/migrations/operations/models.py b/django/db/migrations/operations/models.py
index e55bfd7f0e..a0e81f5e83 100644
--- a/django/db/migrations/operations/models.py
+++ b/django/db/migrations/operations/models.py
@@ -795,7 +795,8 @@ class AddIndex(IndexOperation):
)
def describe(self):
- return 'Create index on field(s) %s of model %s' % (
+ return 'Create index %s on field(s) %s of model %s' % (
+ self.index.name,
', '.join(self.index.fields),
self.model_name,
)