Adding wether ticket is paid or not.

This commit is contained in:
Vidir Valberg Gudmundsson 2017-08-22 20:02:17 +02:00
parent 001bbd5dc0
commit 4e036cdbe2

View file

@ -60,9 +60,13 @@ class ShopTicketAdmin(BaseTicketAdmin):
def user_email(self, obj): def user_email(self, obj):
return obj.order.user.email return obj.order.user.email
def is_paid(self, obj):
return obj.order.paid
list_display = [ list_display = [
'pk', 'pk',
'user_email', 'user_email',
'is_paid',
'ticket_type', 'ticket_type',
'order', 'order',
'product', 'product',