khaganat-web/chat/admin.py

8 lines
198 B
Python
Raw Normal View History

2019-07-23 13:16:03 +00:00
from django.contrib import admin
from .models import LogSource
class LogSourceAdmin(admin.ModelAdmin):
list_display = ('name', 'slug', 'hidden')
admin.site.register(LogSource, LogSourceAdmin)