Mercurial > public > sg101
annotate countdown/admin.py @ 1184:fbfb1a9c70e2
Make donations business a list.
Paypal is now returning a different business email in IPN messages.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 17 Oct 2021 14:40:53 -0500 |
parents | 654b55ad9134 |
children |
rev | line source |
---|---|
bgneal@1081 | 1 from django.contrib import admin |
bgneal@1081 | 2 |
bgneal@1081 | 3 from .models import Event |
bgneal@1081 | 4 |
bgneal@1081 | 5 |
bgneal@1081 | 6 @admin.register(Event) |
bgneal@1081 | 7 class EventAdmin(admin.ModelAdmin): |
bgneal@1081 | 8 list_display = ['__unicode__', 'is_active'] |
bgneal@1081 | 9 list_editable = ['is_active'] |
bgneal@1112 | 10 list_filter = ['is_active'] |
bgneal@1112 | 11 ordering = ['-event_date'] |