Skip to content

Commit

Permalink
Added admin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene MechanisM committed Sep 15, 2011
1 parent 44147db commit 01d174c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dialogos/admin.py
@@ -0,0 +1,8 @@
from django.contrib import admin
from dialogos.models import Comment

class CommentAdmin(admin.ModelAdmin):
list_display = ['author', 'content_type', 'public']
list_filter = ['public', 'content_type']

admin.site.register(Comment, CommentAdmin)

0 comments on commit 01d174c

Please sign in to comment.