add feature views to api and editor.js
This commit is contained in:
parent
0036b27057
commit
4b74eb0cf5
13 changed files with 216 additions and 178 deletions
|
@ -1,17 +1,16 @@
|
|||
import os
|
||||
from collections import OrderedDict
|
||||
|
||||
from django.db import models
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from shapely.geometry.geo import shape, mapping
|
||||
from shapely.geometry.geo import mapping, shape
|
||||
|
||||
from c3nav.mapdata.fields import GeometryField
|
||||
from c3nav.mapdata.models.base import MapdataModel
|
||||
from c3nav.mapdata.utils import format_geojson
|
||||
|
||||
|
||||
FEATURE_TYPES = OrderedDict()
|
||||
|
||||
|
||||
def register_featuretype(cls):
|
||||
FEATURE_TYPES[cls.__name__.lower()] = cls
|
||||
return cls
|
||||
|
@ -77,5 +76,3 @@ class Room(Feature):
|
|||
verbose_name = _('Room')
|
||||
verbose_name_plural = _('Rooms')
|
||||
default_related_name = 'rooms'
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue