Mercurial > public > sg101
comparison countdown/admin.py @ 1112:654b55ad9134
Tweak countdown admin settings.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 11 Jul 2016 21:44:09 -0500 |
parents | ecb8f07d937b |
children |
comparison
equal
deleted
inserted
replaced
1111:96a72f0e6767 | 1112:654b55ad9134 |
---|---|
5 | 5 |
6 @admin.register(Event) | 6 @admin.register(Event) |
7 class EventAdmin(admin.ModelAdmin): | 7 class EventAdmin(admin.ModelAdmin): |
8 list_display = ['__unicode__', 'is_active'] | 8 list_display = ['__unicode__', 'is_active'] |
9 list_editable = ['is_active'] | 9 list_editable = ['is_active'] |
10 list_filter = ['is_active'] | |
11 ordering = ['-event_date'] |