create LocationGroupCategory

This commit is contained in:
Laura Klünder 2017-07-10 13:54:33 +02:00
parent 52c64b0798
commit 4a58c1afab
4 changed files with 86 additions and 4 deletions

View file

@ -9,8 +9,8 @@ from rest_framework.routers import SimpleRouter
from c3nav.editor.api import ChangeSetViewSet, EditorViewSet
from c3nav.mapdata.api import (AreaViewSet, BuildingViewSet, ColumnViewSet, DoorViewSet, HoleViewSet, LevelViewSet,
LineObstacleViewSet, LocationGroupViewSet, LocationViewSet, ObstacleViewSet, POIViewSet,
SourceViewSet, SpaceViewSet, StairViewSet)
LineObstacleViewSet, LocationGroupCategoryViewSet, LocationGroupViewSet, LocationViewSet,
ObstacleViewSet, POIViewSet, SourceViewSet, SpaceViewSet, StairViewSet)
router = SimpleRouter()
router.register(r'levels', LevelViewSet)
@ -27,6 +27,7 @@ router.register(r'pois', POIViewSet)
router.register(r'sources', SourceViewSet)
router.register(r'locations', LocationViewSet)
router.register(r'locationgroupcategories', LocationGroupCategoryViewSet)
router.register(r'locationgroups', LocationGroupViewSet)
router.register(r'editor', EditorViewSet, base_name='editor')