diff countdown/admin.py @ 1081:ecb8f07d937b

Added countdown application.
author Brian Neal <bgneal@gmail.com>
date Sun, 24 Apr 2016 12:27:26 -0500
parents
children 654b55ad9134
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/countdown/admin.py	Sun Apr 24 12:27:26 2016 -0500
@@ -0,0 +1,9 @@
+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']