Add historical records to every model for auditing

This commit is contained in:
2020-02-05 00:00:33 +00:00
parent 30294e7332
commit bad18e069a
4 changed files with 25 additions and 1 deletions
+2
View File
@@ -66,6 +66,7 @@ INSTALLED_APPS = [
'allauth.account',
'allauth.socialaccount', # to support user deletion
'rest_auth.registration',
'simple_history',
]
MIDDLEWARE = [
@@ -76,6 +77,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'simple_history.middleware.HistoryRequestMiddleware',
]
ROOT_URLCONF = 'apiserver.urls'