Mercurial > public > sg101
view countdown/admin.py @ 1210:c4f7f77d55b2 modernize tip
Add unit test for wiki task.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 03 Feb 2025 16:06:31 -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']