Source

Django SL Tools / echo / admin.py

from sltools.echo.models import Requests, Responses
from django.contrib import admin

class RequestsAdmin (admin.ModelAdmin) :
	list_display   = ('id','datetime_posted','method','X_SecondLife_Object_Name','X_SecondLife_Region','X_SecondLife_Local_Position','query_dictionary',)
	list_filter    = ['datetime_posted','method']
	ordering       = ('-id',)
	search_fields  = ('request','datetime_posted')

class ResponsesAdmin (admin.ModelAdmin) :
	list_display   = ('id','datetime_posted','X_SecondLife_Object_Name','X_SecondLife_Region','X_SecondLife_Local_Position','body',)
	list_filter    = ['datetime_posted','X_SecondLife_Region']
	ordering       = ('-id',)
	search_fields  = ('body','datetime_posted')


admin.site.register(Requests, RequestsAdmin)
admin.site.register(Responses, ResponsesAdmin)