X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/8f34c0d94f49bbe47e1277c3a609a6ed14329141..ca53fa5dad4374b66e7a9b810557cbf237138fee:/admin/pages.py?ds=inline diff --git a/admin/pages.py b/admin/pages.py index ab89011..52238da 100644 --- a/admin/pages.py +++ b/admin/pages.py @@ -1,9 +1,11 @@ from django.contrib import admin from django import forms +from django.template import Template as DjangoTemplate from philo.admin import widgets from philo.admin.base import COLLAPSE_CLASSES from philo.admin.nodes import ViewAdmin from philo.models.pages import Page, Template, Contentlet, ContentReference +from philo.forms import TemplateForm class PageAdmin(ViewAdmin): @@ -113,6 +115,7 @@ class TemplateAdmin(admin.ModelAdmin): save_on_top = True save_as = True list_display = ('__unicode__', 'slug', 'get_path',) + form = TemplateForm admin.site.register(Page, PageAdmin)