Ticket #15216: django-set-object-has-no-attribute-append.patch

File django-set-object-has-no-attribute-append.patch, 515 bytes (added by Obey Arthur Liu <arthur@…>, 14 years ago)

patch

  • django/db/backends/__init__.py

    diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py
    a b class BaseDatabaseIntrospection(object):  
    645645                    continue
    646646                tables.add(model._meta.db_table)
    647647                tables.update([f.m2m_db_table() for f in model._meta.local_many_to_many])
     648        tables = list(tables)
    648649        if only_existing:
    649650            existing_tables = self.table_names()
    650651            tables = [
Back to Top