From e3c9742cd462706d4da76fcdd6ede7dd1354ad6c Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Mon, 24 Sep 2012 12:51:50 +0100 Subject: [PATCH] Fix error message for unique constraints --- django/db/backends/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/backends/schema.py b/django/db/backends/schema.py index 2e064909cb..82fa160745 100644 --- a/django/db/backends/schema.py +++ b/django/db/backends/schema.py @@ -384,7 +384,7 @@ class BaseDatabaseSchemaEditor(object): # Find the unique constraint for this field constraint_names = self._constraint_names(model, [old_field.column], unique=True) if strict and len(constraint_names) != 1: - raise ValueError("Found wrong number (%s) of constraints for %s.%s" % ( + raise ValueError("Found wrong number (%s) of unique constraints for %s.%s" % ( len(constraint_names), model._meta.db_table, old_field.column,