view countdown/admin.py @ 1207:80f206a12027 modernize tip

Add unit tests for messages tasks.
author Brian Neal <bgneal@gmail.com>
date Sun, 26 Jan 2025 11:41:28 -0600
parents 654b55ad9134
children
line wrap: on
line source
from django.contrib import admin

from .models import Event


@admin.register(Event)
class EventAdmin(admin.ModelAdmin):
    list_display = ['__unicode__', 'is_active']
    list_editable = ['is_active']
    list_filter = ['is_active']
    ordering = ['-event_date']