Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (24 sloc) 0.928 kB
# encoding: utf-8
# Copyright 2011 Limited
# This file is part of Treeio.
# License
Knowledge management: admin page
from treeio.knowledge.models import KnowledgeFolder, KnowledgeItem, KnowledgeCategory
from django.contrib import admin
class KnowledgeFolderAdmin(admin.ModelAdmin):
""" Knowledge type admin """
list_display = ('name', 'details')
search_fields = ['name']
class KnowledgeItemAdmin(admin.ModelAdmin):
""" Knowledge item admin """
list_display = ('name', 'folder', 'category', 'body')
search_fields = ['name']
class KnowledgeCategoryAdmin(admin.ModelAdmin):
""" Knowledge category admin """
list_display = ('name', 'details')
search_fields = ['name'], KnowledgeFolderAdmin), KnowledgeItemAdmin), KnowledgeCategoryAdmin)
Jump to Line
Something went wrong with that request. Please try again.