from django.contrib import admin from apps.indicatortype.models import IndicatorType class IndicatorTypeAdmin(admin.ModelAdmin): fields = ('name', 'mark', 'regexp', 'hint', 'url') list_display = ('id', 'name', 'mark', 'regexp', 'hint', 'url') # search_fields = ('name',) # ordering = ('-created_date',) admin.site.register(IndicatorType, IndicatorTypeAdmin)