admin.py 268 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
from django.contrib import admin

from .models import Setting


class SettingAdmin(admin.ModelAdmin):
    list_display = ('key', 'value', 'comment')
    list_editable = ('key', 'value', 'comment')
    list_filter = ('key',)

admin.site.register(Setting, SettingAdmin)