From 7771075dc02279727f9df969844cb7f152afbe03 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Tue, 28 Jun 2022 16:45:30 +0200 Subject: [PATCH] Remove South compatibility codes --- auditlog/models.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/auditlog/models.py b/auditlog/models.py index adfc943..7765dcc 100644 --- a/auditlog/models.py +++ b/auditlog/models.py @@ -456,15 +456,3 @@ class AuditlogHistoryField(GenericRelation): # method. However, because we don't want to delete these related # objects, we simply return an empty list. return [] - - -# South compatibility for AuditlogHistoryField -try: - from south.modelsinspector import add_introspection_rules - - add_introspection_rules([], [r"^auditlog\.models\.AuditlogHistoryField"]) - raise DeprecationWarning( - "South support will be dropped in django-auditlog 0.4.0 or later." - ) -except ImportError: - pass