rename Point to POI
This commit is contained in:
parent
fb65549974
commit
f2913dd8ac
8 changed files with 59 additions and 16 deletions
|
@ -150,16 +150,16 @@ class LineObstacle(SpaceGeometryMixin, models.Model):
|
|||
return result
|
||||
|
||||
|
||||
class Point(SpecificLocation, SpaceGeometryMixin, models.Model):
|
||||
class POI(SpecificLocation, SpaceGeometryMixin, models.Model):
|
||||
"""
|
||||
An point in a space.
|
||||
An point of interest
|
||||
"""
|
||||
geometry = GeometryField('point')
|
||||
|
||||
class Meta:
|
||||
verbose_name = _('Point')
|
||||
verbose_name_plural = _('Points')
|
||||
default_related_name = 'points'
|
||||
verbose_name = _('Point of Interest')
|
||||
verbose_name_plural = _('Points of Interest')
|
||||
default_related_name = 'pois'
|
||||
|
||||
@property
|
||||
def buffered_geometry(self):
|
||||
|
|
|
@ -24,7 +24,7 @@ class LocationSlug(SerializableMixin, models.Model):
|
|||
'Level': 'l',
|
||||
'Space': 's',
|
||||
'Area': 'a',
|
||||
'Point': 'p',
|
||||
'POI': 'p',
|
||||
'LocationGroup': 'g'
|
||||
}
|
||||
LOCATION_TYPE_BY_CODE = {code: model_name for model_name, code in LOCATION_TYPE_CODES.items()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue