summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2012-09-24 12:51:50 +0100
committerAndrew Godwin <andrew@aeracode.org>2012-09-24 12:51:50 +0100
commite3c9742cd462706d4da76fcdd6ede7dd1354ad6c (patch)
tree36f5c552e1261e91332f53c1b75f1cc841f6674e
parent1a6d07783d980664312ce729e1fc8867ad1a3b5c (diff)
Fix error message for unique constraints
-rw-r--r--django/db/backends/schema.py2
1 files changed, 1 insertions, 1 deletions
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,