diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-08-10 03:48:34 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-08-10 03:48:34 +0000 |
| commit | cba451c94035ebf6174a283d5b1442dd4b995953 (patch) | |
| tree | a17aa5c827e0f409c6b858d20549c5aa0b1829d8 | |
| parent | ffb6ecc335bb42b16d864ad6df139716c31029c2 (diff) | |
Fixed #2469 -- Fixed the constraint names in the sqlreset output (again!).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3547 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/management.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management.py b/django/core/management.py index 5bb9f98a19..6a077f1d1a 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -301,7 +301,7 @@ def get_sql_delete(app): (style.SQL_KEYWORD('ALTER TABLE'), style.SQL_TABLE(backend.quote_name(table)), style.SQL_KEYWORD(backend.get_drop_foreignkey_sql()), - style.SQL_FIELD(backend.quote_name('%s_refs_%s_%x' % (r_col, col, abs(hash((table, r_table)))))))) + style.SQL_FIELD(backend.quote_name('%s_refs_%s_%x' % (col, r_col, abs(hash((table, r_table)))))))) del references_to_delete[model] # Output DROP TABLE statements for many-to-many tables. |
