Django

Code

Changeset 8157

Show
Ignore:
Timestamp:
07/31/08 02:53:55 (4 months ago)
Author:
russellm
Message:

Fixed #8053 -- Corrected a bug with reset and m2m intermediate tables. Thanks to d00gs for the report and fix.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/management/sql.py

    r8136 r8157  
    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: