summaryrefslogtreecommitdiff
path: root/lib/grappelli/templates/admin_tools/dashboard/dashboard_app_index.txt
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2010-10-23 19:46:20 -0400
committerluxagraf <sng@luxagraf.net>2010-10-23 19:46:20 -0400
commitc59a2a69fb38b92b6c45bcf7431d2b1a3c5dce3c (patch)
tree2fc44ca867839d5e591e21467b6e4526f7a9f080 /lib/grappelli/templates/admin_tools/dashboard/dashboard_app_index.txt
parented77da873e675f02f12cbab9be27f342f825444b (diff)
added grappelli, filebrowser, chunks and tagging to lcal repo
Diffstat (limited to 'lib/grappelli/templates/admin_tools/dashboard/dashboard_app_index.txt')
-rw-r--r--lib/grappelli/templates/admin_tools/dashboard/dashboard_app_index.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/grappelli/templates/admin_tools/dashboard/dashboard_app_index.txt b/lib/grappelli/templates/admin_tools/dashboard/dashboard_app_index.txt
new file mode 100644
index 0000000..0574dfc
--- /dev/null
+++ b/lib/grappelli/templates/admin_tools/dashboard/dashboard_app_index.txt
@@ -0,0 +1,29 @@
+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,
+ # ))