diff options
Diffstat (limited to 'django/db')
| -rw-r--r-- | django/db/migrations/operations/models.py | 4 |
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): |
