from django.contrib import admin from apps.indicator.models import Indicator class IndicatorAdmin(admin.ModelAdmin): fields = ('type', 'value1', 'value2', 'value_added', 'patient', 'last_modified', 'comments', 'observing') list_display = ('id', 'type', 'value1', 'value2', 'value_added', 'patient', 'last_modified', 'comments', 'observing') search_fields = ('type',) ordering = ('-created_date',) admin.site.register(Indicator, IndicatorAdmin)