old_contents: from __future__ import absolute_import, unicode_literals
  
  from django.contrib import admin
  
  from .models import AsyncIndicator, InvalidUCRData
  
  
  class AsyncIndicatorAdmin(admin.ModelAdmin):
  
      model = AsyncIndicator
      list_display = [
          'doc_id',
          'doc_type',
          'domain',
          'indicator_config_ids',
          'date_created',
          'date_queued',
          'unsuccessful_attempts'
      ]
      list_filter = ('doc_type', 'domain', 'unsuccessful_attempts')
      search_fields = ('doc_id',)
  
  
  admin.site.register(AsyncIndicator, AsyncIndicatorAdmin)
  admin.site.register(InvalidUCRData)
  
new_contents: from __future__ import absolute_import, unicode_literals
  
  from django.contrib import admin
  
  from .models import AsyncIndicator, InvalidUCRData
  
  
  class AsyncIndicatorAdmin(admin.ModelAdmin):
  
      model = AsyncIndicator
      list_display = [
          'doc_id',
          'doc_type',
          'domain',
          'indicator_config_ids',
          'date_created',
          'date_queued',
          'unsuccessful_attempts'
      ]
      list_filter = ('doc_type', 'domain', 'unsuccessful_attempts')
      search_fields = ('doc_id',)
  
  
  class InvalidUCRDataAdmin(admin.ModelAdmin):
  
      model = InvalidUCRData
      list_display = [
          'doc_id',
          'doc_type',
          'domain',
          'indicator_config_id',
          'validation_name',
      ]
      list_filter = ('doc_type', 'domain', 'indicator_config_id', 'validation_name')
      search_fields = ('doc_id',)
  
  
  admin.site.register(AsyncIndicator, AsyncIndicatorAdmin)
  admin.site.register(InvalidUCRData, InvalidUCRDataAdmin)
  
subject: Configure custom admin page for invalid ucr data