Installed django simple history and fixed models.py return __str__

This commit is contained in:
Keannu Christian Bernasol 2023-03-07 15:26:44 +08:00
parent 7db50e72e5
commit ad866ca05f
6 changed files with 157 additions and 119 deletions

View file

@ -42,6 +42,7 @@ INSTALLED_APPS = [
'djoser',
'corsheaders',
'products',
'simple_history',
]
MIDDLEWARE = [
@ -53,6 +54,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'simple_history.middleware.HistoryRequestMiddleware',
]
ROOT_URLCONF = 'config.urls'