From 54fdf5901ba205daee04a4e4e40a4863e1d2af4c Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 27 Jun 2014 10:34:48 -0400 Subject: [1.7.x] Fixed #22917 -- Fixed typo in AlterIndexTogether.describe(). Backport of 70576740b0 from master --- django/db/migrations/operations/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'django') 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): -- cgit v1.3