| author | ymh <ymh.work@gmail.com> |
| Tue, 30 Apr 2013 17:15:30 +0200 | |
| branch | socialauth |
| changeset 1172 | 7a8c942972b5 |
| parent 13 | 97ab7b3191cf |
| child 129 | e9f11d142db5 |
| permissions | -rw-r--r-- |
|
13
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
1 |
#from django.contrib import admin |
| 0 | 2 |
from ldt.management import test_cms |
3 |
||
4 |
""" |
|
5 |
site admin pour cms page |
|
6 |
""" |
|
7 |
if test_cms(): |
|
|
13
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
8 |
pass |
|
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
9 |
# class AdminSite(admin.AdminSite): |
|
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
10 |
# index_template = 'admin/page_index.html' |
|
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
11 |
# login_template = 'admin/page_login.html' |
|
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
12 |
# app_index_template = 'admin/page_app_index.html' |
| 0 | 13 |
|
|
13
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
14 |
# admin_site = AdminSite() |
| 0 | 15 |
|
|
13
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
16 |
# from cms.models import Page |
|
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
17 |
# from cms.admin import pageadmin |
| 0 | 18 |
|
|
13
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
19 |
# class CmsPageAdmin(pageadmin.PageAdmin): |
|
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
20 |
# change_list_template = "admin/cms_change_list.html" |
|
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
21 |
# change_form_template = "admin/cms_change_form.html" |
| 0 | 22 |
|
|
13
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
23 |
# admin_site.register(Page, CmsPageAdmin) |
| 0 | 24 |
|
|
13
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
25 |
# from cms.plugins.snippet.models import Snippet |
|
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
26 |
# from cms.plugins.snippet.admin import SnippetAdmin |
| 0 | 27 |
|
|
13
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
28 |
# class CmsSnippetAdmin(SnippetAdmin): |
|
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
29 |
# change_form_template = "admin/page_change_form.html" |
|
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
30 |
# change_list_template = "admin/page_change_list.html" |
|
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
31 |
# admin_site.register(Snippet, CmsSnippetAdmin) |