1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #22917 -- Fixed typo in AlterIndexTogether.describe().

This commit is contained in:
Tim Graham
2014-06-27 10:34:48 -04:00
parent 1e8411259f
commit 70576740b0
2 changed files with 18 additions and 2 deletions

View File

@@ -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):