Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 4ab27ab11941501dfe960fe859f75dfed3934947 1 parent d6d1188
Ian Kelly authored January 04, 2008

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/core/management/sql.py
2  django/core/management/sql.py
@@ -293,7 +293,7 @@ def sql_model_create(model, style, known_models=set()):
293 293
             style.SQL_KEYWORD('NULL'))
294 294
     for field_constraints in opts.unique_together:
295 295
         table_output.append(style.SQL_KEYWORD('UNIQUE') + ' (%s)' % \
296  
-            ", ".join([qn(style.SQL_FIELD(opts.get_field(f).column)) for f in field_constraints]))
  296
+            ", ".join([style.SQL_FIELD(qn(opts.get_field(f).column)) for f in field_constraints]))
297 297
 
298 298
     full_statement = [style.SQL_KEYWORD('CREATE TABLE') + ' ' + style.SQL_TABLE(qn(opts.db_table)) + ' (']
299 299
     for i, line in enumerate(table_output): # Combine and add commas.

0 notes on commit 4ab27ab

Please sign in to comment.
Something went wrong with that request. Please try again.