old_contents: # -*- coding: utf-8
  from django.contrib import admin
  from pybb.models import Category, Forum, Topic, Post, Profile, Read
  
  class CategoryAdmin(admin.ModelAdmin):
      list_display = ['name', 'position', 'forum_count']
  
  class ForumAdmin(admin.ModelAdmin):
      list_display = ['name', 'category', 'position', 'topic_count']
  
  class TopicAdmin(admin.ModelAdmin):
      list_display = ['name', 'forum', 'created', 'head', 'post_count']
      search_fields = ['name']
  
  class PostAdmin(admin.ModelAdmin):
      list_display = ['topic', 'user', 'created', 'updated', 'summary']
      search_fields = ['body']
  
  class ProfileAdmin(admin.ModelAdmin):
      list_display = ['user', 'time_zone', 'location', 'language']
  
  class ReadAdmin(admin.ModelAdmin):
      list_display = ['user', 'topic', 'time']
  
  admin.site.register(Category, CategoryAdmin)
  admin.site.register(Forum, ForumAdmin)
  admin.site.register(Topic, TopicAdmin)
  admin.site.register(Post, PostAdmin)
  admin.site.register(Profile, ProfileAdmin)
  admin.site.register(Read, ReadAdmin)
  
new_contents: # -*- coding: utf-8
  from django.contrib import admin
  from pybb.models import Category, Forum, Topic, Post, Profile, Read
  
  class CategoryAdmin(admin.ModelAdmin):
      list_display = ['name', 'position', 'forum_count']
  
  class ForumAdmin(admin.ModelAdmin):
      list_display = ['name', 'category', 'position', 'topic_count']
  
  class TopicAdmin(admin.ModelAdmin):
      list_display = ['name', 'forum', 'created', 'head', 'post_count']
      search_fields = ['name']
  
  class PostAdmin(admin.ModelAdmin):
      list_display = ['topic', 'user', 'created', 'updated', 'summary']
      search_fields = ['body']
  
  class ProfileAdmin(admin.ModelAdmin):
      list_display = ['user', 'time_zone', 'location', 'language']
  
  class ReadAdmin(admin.ModelAdmin):
      list_display = ['user', 'topic', 'time']
      list_per_page = 20
      ordering = ['-time']
      date_hierarchy = 'time'
      search_fields = ['user__username', 'topic__name']
  
  admin.site.register(Category, CategoryAdmin)
  admin.site.register(Forum, ForumAdmin)
  admin.site.register(Topic, TopicAdmin)
  admin.site.register(Post, PostAdmin)
  admin.site.register(Profile, ProfileAdmin)
  admin.site.register(Read, ReadAdmin)
  
subject: improve admin interface for working with Read objects