summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Kelly <ian.g.kelly@gmail.com>2008-01-04 20:26:13 +0000
committerIan Kelly <ian.g.kelly@gmail.com>2008-01-04 20:26:13 +0000
commit4ab27ab11941501dfe960fe859f75dfed3934947 (patch)
tree771e877ca600a5d9e2e156cd8746f5656ea88b8e
parentd6d1188ed0e04009bcd33aa954cf0b2827641433 (diff)
Fixed the Oracle backend mangling colorized unique_together SQL.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/management/sql.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/sql.py b/django/core/management/sql.py
index 767a2dbbfb..15bffce26b 100644
--- a/django/core/management/sql.py
+++ b/django/core/management/sql.py
@@ -293,7 +293,7 @@ def sql_model_create(model, style, known_models=set()):
style.SQL_KEYWORD('NULL'))
for field_constraints in opts.unique_together:
table_output.append(style.SQL_KEYWORD('UNIQUE') + ' (%s)' % \
- ", ".join([qn(style.SQL_FIELD(opts.get_field(f).column)) for f in field_constraints]))
+ ", ".join([style.SQL_FIELD(qn(opts.get_field(f).column)) for f in field_constraints]))
full_statement = [style.SQL_KEYWORD('CREATE TABLE') + ' ' + style.SQL_TABLE(qn(opts.db_table)) + ' (']
for i, line in enumerate(table_output): # Combine and add commas.