You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
346 B
Python
13 lines
346 B
Python
from django.contrib import admin
|
|
|
|
from nano.comments.models import Comment
|
|
|
|
class CommentAdmin(admin.ModelAdmin):
|
|
model = Comment
|
|
ordering = ('added',)
|
|
list_display = ('content_type', 'object_pk', 'comment', 'user', 'path')
|
|
list_filter = ('content_type',)
|
|
date_hierarchy = 'added'
|
|
admin.site.register(Comment, CommentAdmin)
|
|
|