diff --git a/simple_history/models.py b/simple_history/models.py index 5dd5c9010..8bc2227d9 100644 --- a/simple_history/models.py +++ b/simple_history/models.py @@ -4,6 +4,7 @@ import importlib import threading import uuid +import warnings from django.apps import apps from django.conf import settings @@ -72,6 +73,9 @@ def contribute_to_class(self, cls, name): models.signals.class_prepared.connect(self.finalize, weak=False) self.add_extra_methods(cls) + if cls._meta.abstract and not self.inherit : + warnings.warn("Historical records added to abstract model without inherit=true", UserWarning) + def add_extra_methods(self, cls): def save_without_historical_record(self, *args, **kwargs): """