Ticket #6820: flush.diff
File flush.diff, 535 bytes (added by , 16 years ago) |
---|
-
django/core/management/sql.py
27 27 for model in models.get_models(app): 28 28 tables.append(model._meta.db_table) 29 29 tables.extend([f.m2m_db_table() for f in model._meta.many_to_many]) 30 tables = set(tables) 30 31 if only_existing: 31 32 existing = table_list() 32 33 tables = [t for t in tables if t in existing]