Changeset 6921
- Timestamp:
- 12/17/07 00:02:35 (1 year ago)
- Files:
-
- django/trunk/django/core/management/sql.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/management/sql.py
r6650 r6921 117 117 from django.db import connection, models, get_introspection_module 118 118 from django.db.backends.util import truncate_name 119 from django.contrib.contenttypes import generic 119 120 introspection = get_introspection_module() 120 121 … … 180 181 opts = model._meta 181 182 for f in opts.many_to_many: 183 if isinstance(f.rel, generic.GenericRel): 184 continue 182 185 if cursor and table_name_converter(f.m2m_db_table()) in table_names: 183 186 output.append("%s %s;" % (style.SQL_KEYWORD('DROP TABLE'),
