summaryrefslogtreecommitdiff
path: root/django
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:34:48 -0400
commit70576740b0bb5289873f5a9a9a4e1a26b2c330e5 (patch)
tree38dab453a7eb4cf5cf1e059e28183e58b9c19ed0 /django
parent1e8411259f14f2ef788cc4e7c2a4cdbb537d39b3 (diff)
Fixed #22917 -- Fixed typo in AlterIndexTogether.describe().
Diffstat (limited to 'django')
-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):