+from django import forms
from django.conf import settings
from django.contrib import admin
-from django import forms
-from philo.admin.base import COLLAPSE_CLASSES, TreeAdmin
+
+from philo.admin.base import COLLAPSE_CLASSES, TreeEntityAdmin
+from philo.admin.forms.containers import *
from philo.admin.nodes import ViewAdmin
from philo.models.pages import Page, Template, Contentlet, ContentReference
-from philo.admin.forms.containers import *
class ContentletInline(admin.StackedInline):
return super(PageAdmin, self).response_add(request, obj, post_url_continue)
-class TemplateAdmin(TreeAdmin):
+class TemplateAdmin(TreeEntityAdmin):
prepopulated_fields = {'slug': ('name',)}
fieldsets = (
(None, {