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
|
pip install wagtail-personalisation
|
||||||
|
|
||||||
Next, include the ``wagtail_personalisation`` and
|
Next, include the ``wagtail_personalisation``, ``wagtail.contrib.modeladmin``
|
||||||
``wagtail.contrib.modeladmin`` app in your project's ``INSTALLED_APPS``:
|
and ``wagtailfontawesome`` apps in your project's ``INSTALLED_APPS``:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
# ...
|
# ...
|
||||||
'wagtail.contrib.modeladmin',
|
'wagtail.contrib.modeladmin',
|
||||||
|
'wagtailfontawesome',
|
||||||
'wagtail_personalisation',
|
'wagtail_personalisation',
|
||||||
# ...
|
# ...
|
||||||
]
|
]
|
||||||
|
@ -46,6 +46,7 @@ INSTALLED_APPS = [
|
|||||||
'wagtail.wagtailcore',
|
'wagtail.wagtailcore',
|
||||||
'wagtail.contrib.modeladmin',
|
'wagtail.contrib.modeladmin',
|
||||||
|
|
||||||
|
'wagtailfontawesome',
|
||||||
'modelcluster',
|
'modelcluster',
|
||||||
'taggit',
|
'taggit',
|
||||||
'debug_toolbar',
|
'debug_toolbar',
|
||||||
|
1
setup.py
1
setup.py
@ -4,6 +4,7 @@ from setuptools import find_packages, setup
|
|||||||
install_requires = [
|
install_requires = [
|
||||||
'wagtail>=1.10,<1.11',
|
'wagtail>=1.10,<1.11',
|
||||||
'user-agents>=1.0.1',
|
'user-agents>=1.0.1',
|
||||||
|
'wagtailfontawesome>=1.0.6',
|
||||||
]
|
]
|
||||||
|
|
||||||
tests_require = [
|
tests_require = [
|
||||||
|
@ -38,7 +38,7 @@ class SegmentModelAdmin(ModelAdmin):
|
|||||||
model = Segment
|
model = Segment
|
||||||
index_view_class = SegmentModelIndexView
|
index_view_class = SegmentModelIndexView
|
||||||
dashboard_view_class = SegmentModelDashboardView
|
dashboard_view_class = SegmentModelDashboardView
|
||||||
menu_icon = 'group'
|
menu_icon = 'fa-snowflake-o'
|
||||||
add_to_settings_menu = False
|
add_to_settings_menu = False
|
||||||
list_display = ('name', 'visits', 'active_days', 'status')
|
list_display = ('name', 'visits', 'active_days', 'status')
|
||||||
index_view_extra_js = ['js/commons.js', 'js/index.js']
|
index_view_extra_js = ['js/commons.js', 'js/index.js']
|
||||||
|
Reference in New Issue
Block a user