tickets: Enable admin for Bookings.
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 19 Oct 2010 08:57:27 +0000 (10:57 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 19 Oct 2010 09:03:20 +0000 (11:03 +0200)
tickets/admin.py [new file with mode: 0644]

diff --git a/tickets/admin.py b/tickets/admin.py
new file mode 100644 (file)
index 0000000..fca553e
--- /dev/null
@@ -0,0 +1,9 @@
+from django.contrib import admin
+from models import Booking
+
+class BookingAdmin(admin.ModelAdmin):
+    list_filter=('show',)
+    search_fields=('name', 'email')
+    list_display=('name', 'show', 'tickets', 'created')
+
+admin.site.register(Booking, BookingAdmin)