Add the ticket to the order admin.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-08-17 11:59:28 +02:00
parent 932d6aaa90
commit b3ef1d7538
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,6 @@
from django.contrib import admin
from tickets.admin import ShopTicketInline
from .models import (
CoinifyAPICallback,
CoinifyAPIInvoice,
@ -156,7 +157,7 @@ class OrderAdmin(admin.ModelAdmin):
exclude = ['products']
inlines = [ProductInline]
inlines = [ProductInline, ShopTicketInline]
actions = ['mark_order_as_paid', 'mark_order_as_refunded']

View file

@ -82,3 +82,7 @@ class ShopTicketAdmin(BaseTicketAdmin):
]
search_fields = ['uuid', 'order__id', 'order__user__email', 'name', 'email']
class ShopTicketInline(admin.TabularInline):
model = ShopTicket