Skip to content
Browse files

Fixed #8053 -- Corrected a bug with reset and m2m intermediate tables…

…. Thanks to d00gs for the report and fix.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 004ff03 commit 7a87f5aeaba09fb96d7f3c5dfd620fd2cd7989de @freakboy3742 freakboy3742 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/management/
2 django/core/management/
@@ -181,7 +181,7 @@ def sql_delete(app, style):
for model in app_models:
opts = model._meta
for f in opts.local_many_to_many:
- if isinstance(f.rel, generic.GenericRel):
+ if not f.creates_table:
if cursor and table_name_converter(f.m2m_db_table()) in table_names:
output.append("%s %s;" % (style.SQL_KEYWORD('DROP TABLE'),

0 comments on commit 7a87f5a

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