X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/0835c42da3f8daa85194a246c143032943af9bcf..e9952e20295fdd1703c43ac55e18727b03f3c4ac:/admin.py?ds=sidebyside diff --git a/admin.py b/admin.py index 37939e8..e9a59ad 100644 --- a/admin.py +++ b/admin.py @@ -120,8 +120,11 @@ class PageAdmin(NodeAdmin): def get_fieldsets(self, request, obj=None, **kwargs): fieldsets = list(self.fieldsets) if obj: # if no obj, creating a new page, thus no template set, thus no containers - page = obj - template = page.template + template = obj.template + if template.documentation: + fieldsets.append(('Template Documentation', { + 'description': template.documentation + })) contentlet_containers, contentreference_containers = template.containers for container_name in contentlet_containers: fieldsets.append((('Container: %s' % container_name), {