introducing column model
This commit is contained in:
parent
22cd575de4
commit
b19a8b7356
7 changed files with 79 additions and 11 deletions
|
@ -13,7 +13,7 @@ from rest_framework.viewsets import GenericViewSet, ReadOnlyModelViewSet
|
|||
|
||||
from c3nav.mapdata.models import Building, Door, Hole, LocationGroup, Source, Space
|
||||
from c3nav.mapdata.models.geometry.section import SECTION_MODELS
|
||||
from c3nav.mapdata.models.geometry.space import SPACE_MODELS, Area, LineObstacle, Obstacle, Point, Stair
|
||||
from c3nav.mapdata.models.geometry.space import SPACE_MODELS, Area, Column, LineObstacle, Obstacle, Point, Stair
|
||||
from c3nav.mapdata.models.locations import LOCATION_MODELS, Location, LocationRedirect, LocationSlug
|
||||
from c3nav.mapdata.models.section import Section
|
||||
|
||||
|
@ -108,6 +108,11 @@ class LineObstacleViewSet(MapdataViewSet):
|
|||
queryset = LineObstacle.objects.all()
|
||||
|
||||
|
||||
class ColumnViewSet(MapdataViewSet):
|
||||
""" Add ?geometry=1 to get geometries, add ?space=<id> to filter by space. """
|
||||
queryset = Column.objects.all()
|
||||
|
||||
|
||||
class PointViewSet(MapdataViewSet):
|
||||
""" Add ?geometry=1 to get geometries, add ?space=<id> to filter by space. """
|
||||
queryset = Point.objects.all()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue