from django.contrib import admin
from corehq.apps.telerivet.models import IncomingRequest


class IncomingRequestAdmin(admin.ModelAdmin):

    list_display = [
        'event',
        'message_id',
        'message_type',
        'from_number',
        'from_number_e164',
        'to_number',
        'time_created',
        'time_sent',
    ]

    search_fields = [
        'message_id',
        'from_number',
        'from_number_e164',
        'to_number',
        'time_created',
        'time_sent',
    ]


admin.site.register(IncomingRequest, IncomingRequestAdmin)

Add Telerivet IncomingRequest to admin interface