Ticket #8053: patch.diff

File patch.diff, 532 bytes (added by Dougal Sutherland, 16 years ago)
  • sql.py

     
    181181    for model in app_models:
    182182        opts = model._meta
    183183        for f in opts.local_many_to_many:
    184             if isinstance(f.rel, generic.GenericRel):
     184            if not f.creates_table:
    185185                continue
    186186            if cursor and table_name_converter(f.m2m_db_table()) in table_names:
    187187                output.append("%s %s;" % (style.SQL_KEYWORD('DROP TABLE'),
Back to Top