diff --git a/README.md b/README.md
index 6002cf5..42349f5 100644
--- a/README.md
+++ b/README.md
@@ -58,5 +58,5 @@ python manage.py runserver
```
-### Sample data
+## Sample data
Sample data can be found [here](https://drive.google.com/file/d/1fn08rJJTranGAVpBvo4zDyMEdU4csL1_/view?usp=sharing)
diff --git a/backend/settings.py b/backend/settings.py
index b176008..899b341 100644
--- a/backend/settings.py
+++ b/backend/settings.py
@@ -33,7 +33,8 @@
# Application definition
INSTALLED_APPS = [
- 'baton',
+ 'jet.dashboard',
+ 'jet',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
@@ -155,43 +156,30 @@
BATON = {
'SITE_HEADER': '
',
'SITE_TITLE': 'LinkedOut',
- 'INDEX_TITLE': 'Site administration',
- 'SUPPORT_HREF': 'mailto:khoahockithuatmc@gmail.com',
- 'COPYRIGHT': 'Copyright © 2020 LinkedOut', # noqa
- 'POWERED_BY': 'Otto srl',
- 'CONFIRM_UNSAVED_CHANGES': True,
- 'SHOW_MULTIPART_UPLOADING': True,
- 'ENABLE_IMAGES_PREVIEW': True,
- 'CHANGELIST_FILTERS_IN_MODAL': True,
- 'MENU_ALWAYS_COLLAPSED': False,
- 'MENU_TITLE': 'Menu',
- 'GRAVATAR_DEFAULT_IMG': 'identicon',
- 'MENU': (
- {'type': 'title', 'label': 'main', 'apps': ('auth', )},
- {
- 'type': 'app',
- 'name': 'auth',
- 'label': 'Authentication',
- 'icon': 'fa fa-lock',
- 'models': (
- {
- 'name': 'user',
- 'label': 'Users'
- },
- {
- 'name': 'group',
- 'label': 'Groups'
- },
- )
- },
- { 'type': 'title', 'label': 'Contents', 'apps': ('flatpages', ) },
- { 'type': 'model', 'label': 'Pages', 'name': 'flatpage', 'app': 'flatpages' },
- { 'type': 'free', 'label': 'Relax', 'url': 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', 'perms': ('flatpages.add_flatpage', 'auth.change_user') },
- {'type': 'free', 'label': 'Relaxing', 'default_open': False, 'icon': 'fa fa-puzzle-piece', 'children': [
- {'type': 'free', 'label': 'Tetris',
- 'url': 'https://tetris.com/play-tetris/'},
- {'type': 'free', 'label': 'Guess what is this',
- 'url': 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'},
- ]},
- ),
+ 'INDEX_TITLE': 'Admin',
}
+
+JET_THEMES = [
+ {
+ 'theme': 'green',
+ 'color': '#44b78b',
+ 'title': 'Green'
+ },
+ {
+ 'theme': 'light-violet',
+ 'color': '#a464c4',
+ 'title': 'Light Violet'
+ },
+ {
+ 'theme': 'light-blue',
+ 'color': '#5EADDE',
+ 'title': 'Light Blue'
+ },
+ {
+ 'theme': 'light-gray',
+ 'color': '#222',
+ 'title': 'Light Gray'
+ }
+]
+JET_CHANGE_FORM_SIBLING_LINKS = True
+JET_SIDE_MENU_COMPACT = True
diff --git a/backend/urls.py b/backend/urls.py
index 69e6b61..fe60f80 100644
--- a/backend/urls.py
+++ b/backend/urls.py
@@ -41,7 +41,8 @@
url(r'^redoc/$', schema_view.with_ui('redoc',
cache_timeout=0), name='schema-redoc'),
path('admin/', admin.site.urls),
- path('baton/', include('baton.urls')),
+ path('jet/', include('jet.urls')),
+ path('jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')),
path('api/', include('app.urls')),
]
diff --git a/requirements.txt b/requirements.txt
index f08e0ad..be9ba09 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -5,4 +5,4 @@ mysqlclient==2.0.1
djangorestframework==3.11.1
django-cors-headers==3.4.0
drf-yasg==1.17.1
-django-baton==1.10.8
+r-django-jet==2.0.9