Add API for badge and ticket layout assignments

This commit is contained in:
Raphael Michel
2019-03-06 09:35:08 +01:00
parent f3ef00e3b7
commit 2b8949dea4
6 changed files with 51 additions and 5 deletions

View File

@@ -1,7 +1,9 @@
from django.conf.urls import url
from pretix.api.urls import event_router
from pretix.plugins.ticketoutputpdf.api import TicketLayoutViewSet
from pretix.plugins.ticketoutputpdf.api import (
TicketLayoutItemViewSet, TicketLayoutViewSet,
)
from pretix.plugins.ticketoutputpdf.views import (
LayoutCreate, LayoutDelete, LayoutEditorView, LayoutGetDefault,
LayoutListView, LayoutSetDefault,
@@ -22,3 +24,4 @@ urlpatterns = [
LayoutEditorView.as_view(), name='edit'),
]
event_router.register('ticketlayouts', TicketLayoutViewSet)
event_router.register('ticketlayoutitems', TicketLayoutItemViewSet)