1. Peter Sheats
  2. htsql

Commits

Peter Sheats  committed ca01af7

proxied models causes tables to be added twice so skip them

  • Participants
  • Parent commits 8aa339d
  • Branches default

Comments (0)

Files changed (1)

File src/htsql/tweak/django/introspect.py

View file
         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()