src/ldt/ldt/admin.py
author ymh <ymh.work@gmail.com>
Fri, 06 May 2011 00:45:47 +0200
changeset 93 184314818a3c
parent 13 97ab7b3191cf
child 129 e9f11d142db5
permissions -rw-r--r--
correct indexer

#from django.contrib import admin
from ldt.management import test_cms

"""
site admin pour cms page
"""
if test_cms():
    pass
#    class AdminSite(admin.AdminSite):
#        index_template = 'admin/page_index.html'
#        login_template = 'admin/page_login.html'
#        app_index_template = 'admin/page_app_index.html'    
        
#    admin_site = AdminSite()

#    from cms.models import Page
#    from cms.admin import pageadmin

#    class CmsPageAdmin(pageadmin.PageAdmin):
#        change_list_template = "admin/cms_change_list.html"
#       change_form_template = "admin/cms_change_form.html"

#    admin_site.register(Page, CmsPageAdmin)

#    from cms.plugins.snippet.models import Snippet
#    from cms.plugins.snippet.admin import SnippetAdmin

#    class CmsSnippetAdmin(SnippetAdmin):
#        change_form_template = "admin/page_change_form.html"
#        change_list_template = "admin/page_change_list.html"
#    admin_site.register(Snippet, CmsSnippetAdmin)