From e6d85174ea1aa5495ffaaec97b7fdb48d2b2a8a9 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 19 Oct 2010 10:57:27 +0200 Subject: [PATCH] tickets: Enable admin for Bookings. --- tickets/admin.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tickets/admin.py diff --git a/tickets/admin.py b/tickets/admin.py new file mode 100644 index 0000000..fca553e --- /dev/null +++ b/tickets/admin.py @@ -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) -- 2.30.2