diff --git a/README.rst b/README.rst index fb4b7c01..0d332e47 100644 --- a/README.rst +++ b/README.rst @@ -14,7 +14,7 @@ Django JET | | | Developing of new features for Django Jet will be frozen, only critical bugs will be fixed. | +-----------------------------------------------------------------------------------------------------------------------------------+ -| `Live Demo `_ | +| `Live Demo `_ | +-----------------------------------------------------------------------------------------------------------------------------------+ diff --git a/docs/dashboard_custom.rst b/docs/dashboard_custom.rst index 4f63fbf3..669f3cc3 100644 --- a/docs/dashboard_custom.rst +++ b/docs/dashboard_custom.rst @@ -4,15 +4,15 @@ Custom Dashboard .. note:: Django JET Dashboard tries to be as compatible as possible with django-admin-tools dashboard so that - django-admin-tools modules could be easily ported to Django JET. In most cases in will be enough to + django-admin-tools modules could be easily ported to Django JET. In most cases it will be enough to change python imports and remove extending in modules templates. -Dashboard represents ``Dashboard`` class instance with ``DashboardModule`` class instances as its children. -Any custom **Dashboard** class should inherit ``jet.dashboard.dashboard.Dashboard`` +Dashboard represents ``Dashboard`` class instances with ``DashboardModule`` class instances as its children. +Any custom **Dashboard** class should inherit from ``jet.dashboard.dashboard.Dashboard`` and use ``init_with_context`` to fill it with widgets. You should add your widgets -to ``children`` and ``available_children`` attributes. +to the ``children`` and ``available_children`` attributes. -Before continue make sure you have completed :doc:`install_dashboard`. +Before you continue, make sure you have completed the :doc:`install_dashboard`. Set Up Custom Dashboard ----------------------- @@ -55,12 +55,14 @@ Set Up Custom Dashboard )) -* Add to your settings.py path to created ``dashboard.py`` (example for ``dashboard.py`` in project root): +* Add the path to your ``dashboard.py`` in your ``settings.py`` file. For example, if your + ``dashboard.py`` is in the project root: .. code:: python JET_INDEX_DASHBOARD = 'dashboard.CustomIndexDashboard' -That's all, now you have dashboard with only one widget - ``LinkList``. Dashboard reset may be needed -if your had another dashboard already rendered for any user. Visit :doc:`dashboard_modules` to learn -other widgets you can add to your custom dashboard or :doc:`dashboard_custom_module` to create your own. \ No newline at end of file +That's all, now you have a dashboard with only one widget - ``LinkList``. Dashboard reset may be needed +if you had another dashboard already rendered for any user. Visit :doc:`dashboard_modules` to learn +about other widgets you can add to your custom dashboard or :doc:`dashboard_custom_module` or to create +your own. diff --git a/jet/__init__.py b/jet/__init__.py index 0e917f69..f1f2991b 100644 --- a/jet/__init__.py +++ b/jet/__init__.py @@ -1 +1 @@ -VERSION = '1.0.7' +VERSION = '1.0.8' diff --git a/jet/dashboard/templates/jet.dashboard/module.html b/jet/dashboard/templates/jet.dashboard/module.html index 8946c351..c02689d8 100644 --- a/jet/dashboard/templates/jet.dashboard/module.html +++ b/jet/dashboard/templates/jet.dashboard/module.html @@ -28,7 +28,7 @@
- {{ module.pre_contenta|default_if_none:"" }} + {{ module.pre_content|default_if_none:"" }} {% if module.ajax_load %}
@@ -38,4 +38,4 @@ {% endif %} {{ module.post_content|default_if_none:"" }}
-
\ No newline at end of file +