mirror of
https://github.com/lemeow125/Ivy-Backend.git
synced 2025-06-29 00:55:42 +08:00
Installed django simple history and fixed models.py return __str__
This commit is contained in:
parent
7db50e72e5
commit
ad866ca05f
6 changed files with 157 additions and 119 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue