add more fields to order admin, permit filtering by cancelled

This commit is contained in:
Thomas Steen Rasmussen 2016-06-04 09:37:54 +02:00
parent 641201a856
commit 161290db33

View file

@ -42,8 +42,10 @@ class OrderAdmin(admin.ModelAdmin):
list_display = [ list_display = [
'id', 'id',
'user', 'user',
'camp', 'email',
'total',
'payment_method', 'payment_method',
'open',
'paid', 'paid',
'cancelled', 'cancelled',
] ]
@ -52,7 +54,9 @@ class OrderAdmin(admin.ModelAdmin):
'user', 'user',
'camp', 'camp',
'payment_method', 'payment_method',
'open',
'paid', 'paid',
'cancelled',
] ]
exclude = ['products'] exclude = ['products']