Ticket #6820: flush.diff

File flush.diff, 535 bytes (added by John-Scott Atlakson, 16 years ago)
  • django/core/management/sql.py

     
    2727        for model in models.get_models(app):
    2828            tables.append(model._meta.db_table)
    2929            tables.extend([f.m2m_db_table() for f in model._meta.many_to_many])
     30    tables = set(tables)
    3031    if only_existing:
    3132        existing = table_list()
    3233        tables = [t for t in tables if t in existing]
Back to Top