mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user