Added admin.py file to make dialogos appear in django admin. #1

Merged
merged 1 commit into from Sep 15, 2011
+8 −0
View
8 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)