2013-07-07 14:13:48 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
from __future__ import division, absolute_import, unicode_literals
|
|
|
|
|
|
2013-05-22 16:40:53 +00:00
|
|
|
from django.conf import settings
|
|
|
|
|
|
2013-07-07 14:13:48 +00:00
|
|
|
|
2013-07-07 10:10:50 +00:00
|
|
|
# Restricts the attributes that are passed from ModelAdmin2 classes to their
|
|
|
|
|
# views. This is a security feature.
|
|
|
|
|
# See the docstring on djadmin2.types.ModelAdmin2 for more detail.
|
2013-05-22 16:40:53 +00:00
|
|
|
MODEL_ADMIN_ATTRS = (
|
2013-05-23 23:02:08 +00:00
|
|
|
'list_display', 'list_display_links', 'list_filter', 'admin',
|
2013-06-06 17:48:36 +00:00
|
|
|
'search_fields',
|
2013-07-07 09:47:19 +00:00
|
|
|
'field_renderers',
|
2013-05-23 23:02:08 +00:00
|
|
|
'index_view', 'detail_view', 'create_view', 'update_view', 'delete_view',
|
2013-07-07 08:58:35 +00:00
|
|
|
'get_default_view_kwargs', 'get_list_actions',
|
2013-07-07 12:19:23 +00:00
|
|
|
'actions_on_bottom', 'actions_on_top',
|
2013-07-18 14:32:50 +00:00
|
|
|
'save_on_top', 'save_on_bottom',
|
|
|
|
|
'readonly_fields', )
|
2013-05-22 16:40:53 +00:00
|
|
|
|
2013-07-18 15:55:08 +00:00
|
|
|
ADMIN2_THEME_DIRECTORY = getattr(settings, "ADMIN2_THEME_DIRECTORY", "djadmin2theme_default")
|