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,7 @@
from django.conf.urls import url
from pretix.api.urls import event_router
from pretix.plugins.badges.api import BadgeLayoutViewSet
from pretix.plugins.badges.api import BadgeItemViewSet, BadgeLayoutViewSet
from .views import (
LayoutCreate, LayoutDelete, LayoutEditorView, LayoutListView,
@@ -23,3 +23,4 @@ urlpatterns = [
LayoutEditorView.as_view(), name='edit'),
]
event_router.register('badgelayouts', BadgeLayoutViewSet)
event_router.register('badgeitems', BadgeItemViewSet)