Add the ticket to the order admin.
This commit is contained in:
parent
932d6aaa90
commit
b3ef1d7538
|
@ -1,5 +1,6 @@
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
|
||||||
|
from tickets.admin import ShopTicketInline
|
||||||
from .models import (
|
from .models import (
|
||||||
CoinifyAPICallback,
|
CoinifyAPICallback,
|
||||||
CoinifyAPIInvoice,
|
CoinifyAPIInvoice,
|
||||||
|
@ -156,7 +157,7 @@ class OrderAdmin(admin.ModelAdmin):
|
||||||
|
|
||||||
exclude = ['products']
|
exclude = ['products']
|
||||||
|
|
||||||
inlines = [ProductInline]
|
inlines = [ProductInline, ShopTicketInline]
|
||||||
|
|
||||||
actions = ['mark_order_as_paid', 'mark_order_as_refunded']
|
actions = ['mark_order_as_paid', 'mark_order_as_refunded']
|
||||||
|
|
||||||
|
|
|
@ -82,3 +82,7 @@ class ShopTicketAdmin(BaseTicketAdmin):
|
||||||
]
|
]
|
||||||
|
|
||||||
search_fields = ['uuid', 'order__id', 'order__user__email', 'name', 'email']
|
search_fields = ['uuid', 'order__id', 'order__user__email', 'name', 'email']
|
||||||
|
|
||||||
|
|
||||||
|
class ShopTicketInline(admin.TabularInline):
|
||||||
|
model = ShopTicket
|
||||||
|
|
Loading…
Reference in a new issue