django-cms-mycmsproject-toporojo / admin_tools / dashboard / templates / admin_tools / dashboard / dashboard_app_index.txt

from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse
from admin_tools.dashboard import modules, AppIndexDashboard

# create your custom modules here if you want, for example:
#
# class CustomDashboardModule(modules.DashboardModule):
#     pass
#
{% if warning %}
# WARNING: you've changed the default file name 'dashboard.py' to '{{ file }}.py',
# so, you will need to tell django-admin-tools about this, just add this line
# to your settings.py file:
# ADMIN_TOOLS_APP_INDEX_DASHBOARD_MODULE = '{{ file }}'
{% endif %}
# Your {{ app }} dashboard class
class {{ app|capfirst }}Dashboard(AppIndexDashboard):
    """
    Document your custom app index dashboard.
    """
    def __init__(self, app_title, models, *args, **kwargs):
        super(CustomAppIndexDashboard, self).__init__(*args, **kwargs)

        # append your modules here, example:
        # self.append(modules.RecentActionsDashboardModule(
        #     title=_('Recent Actions'),
        #     limit=5,
        #     include_list=models,
        # ))
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.