summaryrefslogtreecommitdiff
path: root/django/db
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-06-27 10:34:48 -0400
committerTim Graham <timograham@gmail.com>2014-06-27 10:36:05 -0400
commit54fdf5901ba205daee04a4e4e40a4863e1d2af4c (patch)
treec0fb6e4cd2df8125c0496dbb146b7414179a20e7 /django/db
parent8e48ca47e956ad2ec7eb19fca6eae3a58c0bf6c8 (diff)
[1.7.x] Fixed #22917 -- Fixed typo in AlterIndexTogether.describe().
Backport of 70576740b0 from master
Diffstat (limited to 'django/db')
-rw-r--r--django/db/migrations/operations/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/migrations/operations/models.py b/django/db/migrations/operations/models.py
index 7d5b0b258f..1c2f209df3 100644
--- a/django/db/migrations/operations/models.py
+++ b/django/db/migrations/operations/models.py
@@ -248,7 +248,7 @@ class AlterUniqueTogether(Operation):
return name.lower() == self.name.lower()
def describe(self):
- return "Alter %s for %s (%s constraints)" % (self.option_name, self.name, len(self.unique_together))
+ return "Alter %s for %s (%s constraint(s))" % (self.option_name, self.name, len(self.unique_together))
class AlterIndexTogether(Operation):
@@ -288,7 +288,7 @@ class AlterIndexTogether(Operation):
return name.lower() == self.name.lower()
def describe(self):
- return "Alter %s for %s (%s constraints)" % (self.self.option_name, self.name, len(self.index_together))
+ return "Alter %s for %s (%s constraint(s))" % (self.option_name, self.name, len(self.index_together))
class AlterOrderWithRespectTo(Operation):