Source code for AKDashboard.admin
from django.contrib import admin
from AKDashboard.models import DashboardButton
[docs]
@admin.register(DashboardButton)
class DashboardButtonAdmin(admin.ModelAdmin):
"""
Admin interface for dashboard buttons
"""
list_display = ['text', 'url', 'event']
list_filter = ['event']
search_fields = ['text', 'url']
list_display_links = ['text']