from django.contrib import admin

from .models import Preference


class PreferenceAdmin(admin.ModelAdmin):

    list_display = ('app', 'name')
    search_fields = ['app', 'name']
    list_filter = ['app']
    ordering = ['app', 'name']


admin.site.register(Preference, PreferenceAdmin)
