PageRenderTime 82ms CodeModel.GetById 41ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

/simplecms/ext_examples/admin.py

http://django-simplecms.googlecode.com/
Python | 16 lines | 11 code | 5 blank | 0 comment | 0 complexity | 6848b86fba8d3f9e6b39fadea2be4725 MD5 | raw file
 1from django.contrib import admin
 2from models import *
 3
 4class RefArticleAdmin(admin.ModelAdmin):
 5    list_display = ('category', 'article')
 6admin.site.register(RefArticle, RefArticleAdmin)
 7
 8
 9class ThemeAdmin(admin.ModelAdmin):
10    list_display = ('name', 'site_url')
11admin.site.register(Theme, ThemeAdmin)
12
13
14class TemplateAdmin(admin.ModelAdmin):
15    list_display = ('name', 'theme', 'file')
16admin.site.register(Template, TemplateAdmin)