Stop using django-suit
This commit is contained in:
1 parent
c338680787
commit
675b0e1344
2 files changed
-21
No files matched your search
-20
@@ -1,6 +1,4 @@
|
|||||||
from django.apps import AppConfig
|
from django.apps import AppConfig
|
||||||
from suit.apps import DjangoSuitConfig
|
|
||||||
from suit.menu import ParentItem, ChildItem
|
|
||||||
|
|
||||||
|
|
||||||
class MdbAppConfig(AppConfig):
|
class MdbAppConfig(AppConfig):
|
||||||
@@ -10,21 +8,3 @@ class MdbAppConfig(AppConfig):
|
|||||||
def ready(self):
|
def ready(self):
|
||||||
# all models are loaded, now attach signals
|
# all models are loaded, now attach signals
|
||||||
import mdb.signals # noqa
|
import mdb.signals # noqa
|
||||||
|
|
||||||
|
|
||||||
class SuitConfig(DjangoSuitConfig):
|
|
||||||
# Configuration for django-suit
|
|
||||||
# See super class for configuration options
|
|
||||||
# Ref: https://github.com/darklow/django-suit/blob/v2/demo/demo/apps.py#L6
|
|
||||||
verbose_name = 'MDB'
|
|
||||||
list_per_page = 25
|
|
||||||
SEARCH_URL = '/admin/mdb/host/' # TODO
|
|
||||||
layout = 'vertical'
|
|
||||||
|
|
||||||
menu = [
|
|
||||||
ParentItem('MDB', children=[ChildItem(model='mdb.host')]),
|
|
||||||
ParentItem('Settings', children=[
|
|
||||||
ChildItem(model='auth.user'),
|
|
||||||
ChildItem(model='auth.group')
|
|
||||||
], icon='fa fa-cog')
|
|
||||||
]
|
|
||||||
@@ -76,7 +76,6 @@ INSTALLED_APPS = (
|
|||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
|
|
||||||
'mdb.apps.SuitConfig',
|
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
|
|
||||||
'rest_framework',
|
'rest_framework',
|
||||||
|
|||||||
Reference in new issue
Block a user