Skip to content
Snippets Groups Projects
Select Git revision
  • 7bd81119ff5fb939f98055545297260d83983866
  • main default protected
  • renovate/jsonschema-4.x
  • renovate/django-5.x
  • koma/feature/preference-polling-form
5 results

admin.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    admin.py 361 B
    from django.contrib import admin
    from AKDashboard.models import DashboardButton
    
    
    @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']