projects
/
matthijs
/
projects
/
dorestad-bookings.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8d4b03b
)
tickets: Enable admin for Bookings.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 19 Oct 2010 08:57:27 +0000
(10:57 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 19 Oct 2010 09:03:20 +0000
(11:03 +0200)
tickets/admin.py
[new file with mode: 0644]
patch
|
blob
diff --git a/tickets/admin.py
b/tickets/admin.py
new file mode 100644
(file)
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)