Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2469 -- Fixed the constraint names in the sqlreset output (aga…

…in!).

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3547 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cba451c94035ebf6174a283d5b1442dd4b995953 1 parent ffb6ecc
Malcolm Tredinnick authored August 10, 2006

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

  1. 2  django/core/management.py
2  django/core/management.py
@@ -301,7 +301,7 @@ def get_sql_delete(app):
301 301
                         (style.SQL_KEYWORD('ALTER TABLE'),
302 302
                         style.SQL_TABLE(backend.quote_name(table)),
303 303
                         style.SQL_KEYWORD(backend.get_drop_foreignkey_sql()),
304  
-                        style.SQL_FIELD(backend.quote_name('%s_refs_%s_%x' % (r_col, col, abs(hash((table, r_table))))))))
  304
+                        style.SQL_FIELD(backend.quote_name('%s_refs_%s_%x' % (col, r_col, abs(hash((table, r_table))))))))
305 305
                 del references_to_delete[model]
306 306
 
307 307
     # Output DROP TABLE statements for many-to-many tables.

0 notes on commit cba451c

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