Commits

Peter Sheats committed ca01af7

proxied models causes tables to be added twice so skip them

Comments (0)

Files changed (1)

src/htsql/tweak/django/introspect.py

         column_by_field = {}
         for model in all_models:
             meta = model._meta
+            if meta.proxy:
+                # Proxies cause the table to be added twice
+                continue
             name = meta.db_table
             if is_upper:
                 name = name.upper()