old_contents: from django.contrib import admin
  
  from kitsune.products.models import Product, Topic
  
  
  class ProductAdmin(admin.ModelAdmin):
      list_display = ('title', 'slug', 'display_order', 'visible')
      list_display_links = ('title', 'slug')
      list_editable = ('display_order', 'visible')
      readonly_fields = ('id',)
      prepopulated_fields = {'slug': ('title',)}
  
  
  class TopicAdmin(admin.ModelAdmin):
      list_display = ('product', 'title', 'slug', 'display_order', 'visible')
      list_display_links = ('title', 'slug')
      list_editable = ('display_order', 'visible')
      list_filter = ('product', 'parent', 'slug')
      readonly_fields = ('id',)
      prepopulated_fields = {'slug': ('title',)}
  
  
  admin.site.register(Product, ProductAdmin)
  admin.site.register(Topic, TopicAdmin)
  
new_contents: from django.contrib import admin
  
  from kitsune.products.models import Product, Topic
  
  
  class ProductAdmin(admin.ModelAdmin):
      list_display = ('title', 'slug', 'display_order', 'visible')
      list_display_links = ('title', 'slug')
      list_editable = ('display_order', 'visible')
      readonly_fields = ('id',)
      prepopulated_fields = {'slug': ('title',)}
  
  
  class TopicAdmin(admin.ModelAdmin):
      def parent(obj):
          return obj.parent
      parent.short_description = 'Parent'
  
      list_display = ('product', 'title', 'slug', parent, 'display_order', 'visible')
      list_display_links = ('title', 'slug')
      list_editable = ('display_order', 'visible')
      list_filter = ('product', 'parent', 'slug')
      readonly_fields = ('id',)
      prepopulated_fields = {'slug': ('title',)}
  
  
  admin.site.register(Product, ProductAdmin)
  admin.site.register(Topic, TopicAdmin)
  
subject: Add parent column to the topic list in admin.