Adding wether ticket is paid or not.
This commit is contained in:
parent
001bbd5dc0
commit
4e036cdbe2
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue