New icon for the segments menu item (#118)
New icon for the segments menu item
This commit is contained in:
committed by
Michael van Tellingen
parent
8465e6dcbb
commit
5beef1b27c
@ -38,14 +38,15 @@ To install the package with pip::
|
||||
|
||||
pip install wagtail-personalisation
|
||||
|
||||
Next, include the ``wagtail_personalisation`` and
|
||||
``wagtail.contrib.modeladmin`` app in your project's ``INSTALLED_APPS``:
|
||||
Next, include the ``wagtail_personalisation``, ``wagtail.contrib.modeladmin``
|
||||
and ``wagtailfontawesome`` apps in your project's ``INSTALLED_APPS``:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
INSTALLED_APPS = [
|
||||
# ...
|
||||
'wagtail.contrib.modeladmin',
|
||||
'wagtailfontawesome',
|
||||
'wagtail_personalisation',
|
||||
# ...
|
||||
]
|
||||
|
@ -46,6 +46,7 @@ INSTALLED_APPS = [
|
||||
'wagtail.wagtailcore',
|
||||
'wagtail.contrib.modeladmin',
|
||||
|
||||
'wagtailfontawesome',
|
||||
'modelcluster',
|
||||
'taggit',
|
||||
'debug_toolbar',
|
||||
|
1
setup.py
1
setup.py
@ -4,6 +4,7 @@ from setuptools import find_packages, setup
|
||||
install_requires = [
|
||||
'wagtail>=1.10,<1.11',
|
||||
'user-agents>=1.0.1',
|
||||
'wagtailfontawesome>=1.0.6',
|
||||
]
|
||||
|
||||
tests_require = [
|
||||
|
@ -38,7 +38,7 @@ class SegmentModelAdmin(ModelAdmin):
|
||||
model = Segment
|
||||
index_view_class = SegmentModelIndexView
|
||||
dashboard_view_class = SegmentModelDashboardView
|
||||
menu_icon = 'group'
|
||||
menu_icon = 'fa-snowflake-o'
|
||||
add_to_settings_menu = False
|
||||
list_display = ('name', 'visits', 'active_days', 'status')
|
||||
index_view_extra_js = ['js/commons.js', 'js/index.js']
|
||||
|
Reference in New Issue
Block a user