django-brainstorm/brainstorm/admin.py

13 lines
348 B
Python
Raw Normal View History

2009-02-25 16:41:50 +00:00
from django.contrib import admin
from brainstorm.models import Subsite, Idea
class SubsiteAdmin(admin.ModelAdmin):
list_display = ('slug', 'name')
class IdeaAdmin(admin.ModelAdmin):
list_display = ('title', 'user', 'subsite')
list_filter = ('subsite',)
admin.site.register(Subsite, SubsiteAdmin)
admin.site.register(Idea, IdeaAdmin)