diff --git a/pgtrigger/migrations.py b/pgtrigger/migrations.py index d8dc708..8b7a103 100644 --- a/pgtrigger/migrations.py +++ b/pgtrigger/migrations.py @@ -148,6 +148,10 @@ def _inject_m2m_dependency_in_proxy(proxy_op): proxy models. Inject the dependency here """ for base in proxy_op.bases: + # Skip abstract models + if not (isinstance(base, str) and "." in base): + continue + model = apps.get_model(base) creator = model._meta.auto_created if creator: